I want to ask a question about barplot\'s axes:
first please see my data.
SerNo DOY Rain 1 350 0 2 351 0 3 352 0 4 353 0 5 354 0 6 355 0 7
Try this instead:
mp <- barplot(rainbar$Rain,axes=F,ylim=c(0,15)) axis(1,at=mp,labels=rainbar$DOY) axis(2,seq(0,15,3),c(0,3,6,9,12,15))
Read ?barplot to see that the value returned from the function call is a vector of midpoints in the plot coordinate system.
?barplot