[R] Adding data labels to Lattice plots

From: chandrasekhar ganduri <cganduri_at_gmail.com>
Date: Wed, 12 Dec 2007 10:45:40 -0500


Hi,

I am new to lattice graphics and have the following question. I have a dataframe d2:

     cat PointsInTime MeanScore
1 Parent       Intake  26.25000
2  Youth       Intake   9.75000
3 Worker       Intake  20.63636
4 Parent    Discharge  24.00000

5 Youth Discharge 15.60000
6 Worker Discharge 23.90909

and to produce a plot I am using the following code

print(xyplot(MeanScore ~ PointsInTime, d2, groups = cat, type = 'o',

        xlab = "Points in Time", ylab = "Mean Score", aspect = 0.7,
        auto.key = list(points = TRUE, lines = TRUE, space = "right")))

However, I want to data labels to the plot and think I need to use the panel function, but am not sure how to proceed. Please help

Thanks
Chandra

-- 
Chandrasekhar Ganduri
320 West Union St, APT # 105
Athens, OH - 45701
Ph: 740-274-9170

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 12 Dec 2007 - 15:52:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Dec 2007 - 16:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.