Not sure. Judging by the exams, at least 1/2 the class knows more about lattice
than I do.
;-)
This would be a fine question for R-help, although you should, in that case,
provide the code that creates the dataframe so that people can play with your
data directly.
Dave
Nirmala Ravishankar writes:
Thanks, Dave.
A quick question about plot() and xyplot(). How does one move the x or
the 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
On Tue, 21 Jan 2003 dkane(a)latte.harvard.edu wrote:
Check out order(). You want something like:
x[order(x$var),]
where x is your dataframe.
Dave
Nirmala Ravishankar writes:
Hey Folks,
Do any of you remember how to sort a dataframe based on single numerical
variable? I know this question came up earlier in the semester but I
don't remember the answer any more........
Thanks,
Nirmala
_______________________________________________
gov1000-list mailing list
gov1000-list(a)fas.harvard.edu
http://www.fas.harvard.edu/mailman/listinfo/gov1000-list
--
David Kane
Lecturer In Government
617-563-0122
dkane(a)latte.harvard.edu
Please avoid sending me Word or PowerPoint attachments.
See
http://www.fsf.org/philosophy/no-word-attachments.html
_______________________________________________
gov1000-list mailing list
gov1000-list(a)fas.harvard.edu
http://www.fas.harvard.edu/mailman/listinfo/gov1000-list
_______________________________________________
gov1000-list mailing list
gov1000-list(a)fas.harvard.edu
http://www.fas.harvard.edu/mailman/listinfo/gov1000-list
--
David Kane
Lecturer In Government
617-563-0122
dkane(a)latte.harvard.edu
Please avoid sending me Word or PowerPoint attachments.
See
http://www.fsf.org/philosophy/no-word-attachments.html