I'm not sure if this is what you're looking for, but this will give you a whole
bunch of lines:
groups = blah, panel=panel.superpose, type="l"
-p
-------------------------------------------------
Phillip Y. Lipscy
Perkins Hall Room #129
35 Oxford Street
Cambridge, MA 02138
(617)493-4893
lipscy(a)fas.harvard.edu
First Year Student, Ph.D. Program
Harvard University, FAS, Department of Government
-------------------------------------------------
Quoting Nirmala Ravishankar <ravishan(a)fas.harvard.edu>du>:
Thanks, Phil. That's very helpful.
While playing around with plot() and xyplot(), have you come across any
instructions for plotting two different lines on the same graph? If I
remember correctly, GK have something like that in their paper -- where
one line is solid and the other is dotted.
- Nirmala
On Fri, 3 Jan 2003, Phillip Y. Lipscy wrote:
Since we're obviously not getting a solution
for the "lattice problem"
and
everybody has better things to do, here are some
tips for setting up
lattice:
To start:
library(nlme)
lset(theme = col.whitebg())
Try out:
demo(lattice)
Basic functions and applications (I think there's more but this is what
I've
figured out so far - use help() for details):
histogram(~x | y, data = blah) --> here, "y" needs to be coded as a
character
variable. Then you get y numbers of graphs
labeled properly. If you don't
care
about the labels, "y" can be numeric.
xyplot(y ~ x | z, data = blah) --> same thing for "z" as above
cloud(y ~ x * z, data = blah) --> this creates a 3D plot. The variables
don't
have to be characterized.
also potentially interesting:
levelplot()
densityplot()
"panel" and "group" are useful parameters, but I don't think I
fully
understand
the details...
Still haven't figured out how to put in the abline...
Best,
Phillip
ps - feel free to buy me a beer :)
-------------------------------------------------
Phillip Y. Lipscy
Perkins Hall Room #129
35 Oxford Street
Cambridge, MA 02138
(617)493-4893
lipscy(a)fas.harvard.edu
First Year Student, Ph.D. Program
Harvard University, FAS, Department of Government
-------------------------------------------------
_______________________________________________
gov1000-list mailing list
gov1000-list(a)fas.harvard.edu
http://www.fas.harvard.edu/mailman/listinfo/gov1000-list