Skip to content
Prev 333752 / 398506 Next

Y-axis label not plotting

On 11/27/2013 05:32 PM, Luke M wrote:
Hi Luke,
Thanks for including the data. When I plot it, I get both y axis label 
and y axis tick labels.

If you only want the last 30 days, you could select them like this:

last30<-dates1 >= strptime("2013-10-14","%Y-%m-%d")
plot(dates1[last30],temp1[last30],type="o",col="red",pch=20,
  xlab="x axis", main="my plot", ylab="y axis", ylim=c(0,40),
  yaxp = c(0,40,10))

Jim