Read data with
birth <- read.table("http://anaraven.github.io/static/birth.txt", header=TRUE)
November 29th, 2016
Read data with
birth <- read.table("http://anaraven.github.io/static/birth.txt", header=TRUE)
plot(head ~ weight, data=birth)
birth$apgar5 <- as.factor(birth$apgar5) plot(sex ~ apgar5, data=birth)
plot(sex ~ weight, data=birth)
plot(weight ~ sex, data=birth)
Plotting a numeric value depending on a factor results in a boxplot
It is a graphical version of summary()
.
plot(weight ~ sex, data=birth, boxwex=0.2, notch=TRUE, col="grey")
plot(birth)