Skip to content
Snippets Groups Projects
Commit a821e3f7 authored by Felix Ramnelöv's avatar Felix Ramnelöv
Browse files

Lab 1: Assignment 3 init

parent 8a1cea42
No related branches found
No related tags found
No related merge requests found
data = read.csv("pima-indians-diabetes.csv", header = FALSE)
# ----1.----
plot(
main="Plasma Glucose Concentration vs Age",
data$V8,
data$V2,
xlab = "Age",
ylab = "Plasma Glucose Concentration",
col = ifelse(data$V9 == 1,
"red",
"blue")
)
legend("bottomright", legend = c("Diabetes", "No Diabetes"),
fill = c("red", "blue"))
# ----3.----
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment