Sorry, I have read other posts on tick marks but nothing is working. Here is my R code. I was able to turn off the x axis at one point (I removed that code), but never got the tick marks on by 20s. It always goes to the default of 50, 100, 150, 200. Thanks. R code: hist(OMY$FL, main = "2010 Oncorhynchus mykiss Fork Length Frequencies at Buck Creek Reach 1", include.lowest = TRUE, col = "blue", border = "white", breaks = 140, xlab = "Fork Length in mm", ylab = "Frequency", xlim = range(0,200), ylim = range (0,15), xbar=10) -- View this message in context: http://r.789695.n4.nabble.com/need-tick-marks-by-10s-or-20s-up-to-200-on-x-axis-tp3311627p3311627.html Sent from the R help mailing list archive at Nabble.com.
Julie McWhorter
2011-Feb-17 20:58 UTC
[R] need tick marks by 10s or 20s up to 200 on x axis
I haven't been able to get any code to make more tick marks than the default by 50. Thanks! Code: hist(OMY$FL, main = "2010 Oncorhynchus mykiss Fork Length Frequencies at Buck Creek Reach 1", include.lowest = TRUE, col = "blue", border = "white", breaks = 140,xlab = "Fork Length in mm", ylab = "Frequency", xlim = range(0,200), ylim = range (0,15), xbar=10) [[alternative HTML version deleted]]
On 02/18/2011 07:56 AM, juliemcwh wrote:> > Sorry, I have read other posts on tick marks but nothing is working. > > Here is my R code. I was able to turn off the x axis at one point (I > removed that code), but never got the tick marks on by 20s. It always goes > to the default of 50, 100, 150, 200. > > Thanks. > > R code: hist(OMY$FL, main = "2010 Oncorhynchus mykiss Fork Length > Frequencies at Buck Creek Reach 1", include.lowest = TRUE, col = "blue", > border = "white", breaks = 140, > xlab = "Fork Length in mm", ylab = "Frequency", xlim = range(0,200), ylim > = range (0,15), xbar=10)Hi Julie, Joshua's suggestion will probably get you what you want. If you are still having trouble with some tick labels dropping out, have a look at staxlab (plotrix). Jim