So, r-help answered your question in 12 minutes. Not bad, heh?
;-)
Again, you'll find that you get better answers (on average), if you provide the
code that creates your example -- something like:
x <- data.frame(State = c("MA",
"CT", "TX", "AK"), Ratio = c(1.3, 1.02, 0.9, 0.77))
x
State Ratio
1 MA 1.30
2 CT 1.02
3 TX 0.90
4 AK 0.77
Also, you should always report what version of R you are using by providing the
results to R.version. At work, this is
R.version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
major 1
minor 6.1
year 2002
month 11
day 01
language R
for me.
Dave
Deepayan Sarkar writes:
> On Tuesday 21 January 2003 02:19 pm, Nirmala Ravishankar wrote:
> > 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?
> This feature is currently missing (but
planned for the future). This was
> discussed a while back, and a panel function which does this was posted. Try
> looking at the thread starting with
>
https://www.stat.math.ethz.ch/pipermail/r-help/2002-December/052506.html
> Deepayan
--
David Kane
Geode Capital Management
617-563-0122
david.d.kane(a)fmr.com
Please avoid sending me Word or PowerPoint attachments.
See
http://www.fsf.org/philosophy/no-word-attachments.html