There's no specific command to pass in. The variable has to be a character
variable before you run xyplot().
-Phillip.
-------------------------------------------------
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 Olivia Lau <olau(a)fas.harvard.edu>du>:
But what was the specific command you passed into
xyplot() to get the
labels to show up? As I mentioned before, groups = as.character(year) did
not work for me...
Olivia.
On Fri, 27 Dec 2002, Phillip Y. Lipscy wrote:
I think I finally got it to work. lset(theme =
col.whitebg()) seems to do
the
job for the background color. For the graph
labels, it seems like the
variable
by which the graphs are separated need to be in
character form.
-Phillip.
Quoting Olivia Lau <olau(a)fas.harvard.edu>du>:
> I've had precisely the same problems! I've tried
>
> lset(theme = col.whitebg())
>
> to change the background color, but although it works for the demo, it
> doesn't work for me!
>
> I've also tried
>
> groups = as.character(year)
>
> to get the subplots to label themselves, but that also doesn't
work...when
> I add the "panel = (x, y , ..."
statement, it tells me that it can't
find
> either x or y!
>
> Help?
>
> On a side note, this is really new "technology" ... I'm not sure if
it's
> worth our time or effort under exam
conditions to fool around with
this.
> My two cents.
>
> Merry Christmas!
>
> Olivia.
>
> On Mon, 23 Dec 2002, Phillip Y. Lipscy wrote:
>
> > Dear all,
> >
> > Does anybody know how to change the background color for the lattice
> output? I
> > get an ugly brownish color by default and it's pretty gross. Also,
any
> advice
> > on how to change the labels for the multiple plots/histograms when
> they're
> > produced? I've tried several things but the labels on each plot are
always
> the
> > same and something generic like "data.frame$column." How do you
change
> them to
> > something like "California" "Colorado" or "1920"
"1930" etc.?
> >
> > BTW, can we expect an answer key for the Lattice Problem from HW8?
The
> website
> > is somewhat helpful but assumes a lot of technical know-how that we
don't
have.
Thanks,
Phillip.
-------------------------------------------------
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
_______________________________________________
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
_______________________________________________
gov1000-list mailing list
gov1000-list(a)fas.harvard.edu
http://www.fas.harvard.edu/mailman/listinfo/gov1000-list