[R] Graphics related questions
Nirmala Ravishankar
ravishan at fas.harvard.edu
Tue Jan 21 21:20:03 CET 2003
While using xyplot or barchart, how does on move the x or y axis? I am
trying to plot ratios ranging from 0.77 to 1.3 in a bargraph, with the y
axis at x = 1. I want ratios greater than 1 to appear as on the right side of the y-axis
and the ratios less than 1 to appear on the left.
My dataframe US looks like this
State Ratio
MA 1.3
CT 1.02
TX 0.9
AK 0.77
When I do barchart(formula = State ~ Ratio, data = US), the y axis is
positioned at x = 0.7. How do I move it to x = 1?
Thanks,
Nirmala
More information about the R-help
mailing list