search for: pyramidlikert

Displaying 2 results from an estimated 2 matches for "pyramidlikert".

2012 May 22
2
getting a Likert plot from a data frame
...y axis label. Here is a quick example: library(HH) #my data are: df<-data.frame(as.character(cat=c("group1","group2","group3","group4", "group5")),males=c(20,30,45,12,5),females=c(35,23,32,8,5)) #make a pyramid Likert chart p<-likert(df) as.pyramidLikert(p) It tries to plot three variables here when I just want two. I think I understand what is happening - my categorical variable is treated as a factor and I think it gets inserted as an integer into the matrix which the command derives from my data fame, to make the plot with(?) It's then used...
2012 Apr 12
2
pyramid.plot in plotrix, axis labelling
Hi, I've been looking at ways to make pyramid plots in R. I like the pyramid.plot method in plotrix as it seems the simplest to use and building them in ggplot looks a bit more code intensive than I'd like, being as I'm new to R. This package does pretty much what I need it to do, however I can't seem to scale the x axis labels. The other labels scale fine with labelcex. I