I want to plot the mean of multiple variables in one graph. I have five variables in a data frame. These variables have been measures on a 5-point scale.
"V1_A","V1_B","V1_C", "V1_D","V1_E"
head(df$V1A)
[1] 4 5 4 5 5 3
I want to depict the mean values of each of these variables from higher to lower values.
I thought of first creating a list of these variables and then plot them using ggplot2. But I am unable to do it
plotData <- df[, c("V1_A","V1_B","V1_C", "V1_D","V1_E")]
ggplot(df, aes(x=plotData, y=mean, fill=plotData))
Anyone can please help me with the R code?