[R] ylim problem in barplot
MSchwartz at mn.rr.com
Thu Jan 5 14:40:32 CET 2006
On Thu, 2006-01-05 at 14:01 +0100, Bliese, Paul D LTC USAMH wrote:
> R Version 2.2.0
> Platform: Windows
> When I use barplot but select a ylim value greater than zero, the graph
> is distorted. The bars extend below the bottom of the graph.
> For instance the command produces a problematic graph.
> Any help would be appreciated.
barplot(c(200, 300, 250, 350), ylim = c(150, 400), xpd = FALSE)
The 'xpd = FALSE' will enable clipping of the graphic at the boundary of
the plot region.
See ?par for more information on 'xpd'.
More information about the R-help