BIO215 practical 1
Ace your homework & exams now with Quizwiz!
regression test
Model = lm(y~x,data = yourdatanamehere, na.action = na.exclude) summary(Model)
correlation test
cor.test(x,y)
Importing files
dataname<- read.csv("dataname.csv") attach(dataname) dataname
dont forget a
header of the data
if we using ggplot
install.packages("ggplot2") library(ggplot2)
ploting in base r
plot(x,y,xlab="xvar",ylab="yvar",main="title") varname=lm(y~x) abline(varname)
step 1
setwd()