[R] Hist and extra space

Filoche pmassicotte at hotmail.com
Wed Dec 7 15:30:51 CET 2011


Hi everyone.

I have an histogram like this one:

http://imageshack.us/photo/my-images/442/dfsdfsdj.jpg/

I would like to remove the extra space under the histogram so it "touch" the
x axis. Is it possible? Here's my code.

hist(X, freq = F, col = 'gray', axes = FALSE)
abline(v = cyano_euk_min, col = 'red', lty = 3, lw = 2)
abline(v = cyano_euk_max, col = 'red', lty = 3, lw = 2)
axis(1, tck = -0.02)
axis(2, tck = -0.02)
box(bty = 'l')

Regards,
Phil

--
View this message in context: http://r.789695.n4.nabble.com/Hist-and-extra-space-tp4169121p4169121.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list