Displaying 1 result from an estimated 1 matches for "snfp1".
Did you mean:
snap1
2008 Jun 13
1
Switching the order of legend boxes in a lattice bar graph
...above "Y" and light blue in the legend to
mirror the stacked bars in the graph which feature dark blue above light blue.
I have tried changing the data as well as the order of the legend
text, without success. Any assistance is much appreciated,
regards
Bob Green
library(lattice)
SNFP1 <- as.table(matrix(c(4,1, 4,4, 1,3, 2,7, 1,6, 0,4), ncol = 6,
dimnames = list(group=c("Y","No"), Status=c("A","B", "C", "D", "E", "F"))))
barplot(SNFP1, beside=FALSE, legend=TRUE, ylim=c(0, 60), ylab="N of
pat...