Re: [R] Way to Plot Multiple Variables and Change Color

2017-03-28 Thread Richard M. Heiberger
> default values. How can this be done? > > Kind regards > > Georg > > > > > Von:"Richard M. Heiberger" > An: g.maub...@weinwolf.de, > Kopie: r-help > Datum: 28.03.2017 17:40 > Betreff:Re: [R] Way to Plot Multiple Variables and Chan

Re: [R] Way to Plot Multiple Variables and Change Color

2017-03-28 Thread Richard M. Heiberger
I think you are looking for the likert function in the HH package. >From ?likert Diverging stacked barcharts for Likert, semantic differential, rating scale data, and population pyramids. This will get you started. Much more fine control is available. See the examples and demo. ## install.pa

Re: [R] Way to Plot Multiple Variables and Change Color

2017-03-28 Thread Ulrik Stervbo
Hi Georg, I am a little unsure of what you want to do, but maybe this: mdf <- melt(dfr) d_result <- mdf %>% dplyr::group_by(variable, value) %>% summarise(n = n()) ggplot( d_result, aes(variable, y = n, fill = value)) + geom_bar(stat = "identity") HTH Ulrik On Tue, 28 Mar 2017 at 15

[R] Way to Plot Multiple Variables and Change Color

2017-03-28 Thread G . Maubach
Hi All, in my current project I have to plot a whole bunch of related variables (item batteries, e.g. How do you rate ... a) Accelaration, b) Horse Power, c) Color Palette, etc.) which are all rated on a scale from 1 .. 4. I need to present the results as stacked bar charts where the variables