Re: [R] Help with setting the y-axis in a plot.

2011-03-17 Thread Joshua Wiley
Hi Caitlin, You just need to set the ylim argument to plot (you already did but g_range is 0, 13 not 0, 15. So... On Thu, Mar 17, 2011 at 10:49 PM, Caitlin wrote: > 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 ra

[R] Help with setting the y-axis in a plot.

2011-03-17 Thread Caitlin
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,