Hi all. I'm working on an assignment for a psychology class and I am not sure how to adjust the y-axis so it displays the range: 0, 5, 10, 15
The code below is almost ideal: lsd = c(3, 5, 13) mar = c(1, 2, 3) g_range <- range(0, lsd, mar) plot(lsd, type="o", col="blue", ylim=g_range, axes=FALSE, ann=FALSE) axis(1, at=1:3, lab=c("Low","Med","High")) axis(2, las=1, at=5*0:max(mar)) box() lines(mar, type="o", pch=22, lty=2, col="red") title(main="The Effect of Drug Dosage and Type on the Number of Hallucinations", col.main="red", font.main=4) title(xlab="Dose", col.lab=rgb(0,0.5,0)) title(ylab="Number of Hallucinations", col.lab=rgb(0,0.5,0)) Thanks, ~Caitlin [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.