On 07.12.2011 15:30, Filoche wrote:
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.


See ?par and its argument yaxs.

Uwe Ligges



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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to