[R] Data labels in barchart (lattice)

From: K. Elo <maillists_at_nic.fi>
Date: Mon, 21 Apr 2008 12:32:37 +0300

Dear all,

I use the barchart-function (lattice) for plotting stacked barcharts. The data is a summary table (data frame) of likert-scale-evaluations (strongly agree, agree...strongly disagree) to different issues constructed as follows (L1=precentage of "strongly agree" evaluations, L4=precentage of "strongly disagree" evaluations):

ID	L1	L2	L3	L4	DN
Issue1	25	40	35	0	0
Issue2	15	30	22	28	5

--- What I have so far not achieved is adding data labels to each "sub-bar" of a 100%-bar. What I would like to have is something like this: Issue1: |###25%###OOOOOO40%OOOOOOXXX35%XXX Issue2: | (similar)

What should I do in oder to display data labels? Thanks in advance, Kimmo ______________________________________________ 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 Mon 21 Apr 2008 - 09:37:10 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 Mon 21 Apr 2008 - 17:30:29 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.

list of date sections of archive