Professional Documents
Culture Documents
Likert-Plots and Grouped Likert-Plots #Rstats - R-Bloggers
Likert-Plots and Grouped Likert-Plots #Rstats - R-Bloggers
Likert-Plots and Grouped Likert-Plots #Rstats - R-Bloggers
Home
About
RSS
add your blog!
Learn R
R jobs���
Contact us
Welcome!
Follow @rbloggers 74.8K
On Facebook:
R blog…
76 mil curtidas
Curtir Página
Jobs for R-
users
Customer Success
Representative
Movement
Building Analyst
Business
Intelligence
Analyst
Innovation Fellow
Postdoctoral
position Stats,
Comp. Biol. @
Madrid, Spain.
Recent Posts
Create Animation
in R : Learn by
Examples
Predicting Car
Battery Failure
With R And H2O
– Study
Practical Data
Science with R,
half off sale!
Rstudio & ThinkR
roadshow – June 6
– Paris
[R]eady for
Production: a
Joint Event with
RStudio and
EODA
Royal Society of
Biology:
Introduction to
Reproducible
Analyses in R
Spotlight on: Julia
Silge, Stack
Overflow
Comparing
Frequentist,
Bayesian and
Simulation
methods and
conclusions
Analysing the
HIV pandemic,
Part 4:
Classification of
lab samples
MRAN snapshots,
and you
Deep (learning)
like Jacques
Cousteau – Part 5
– Vector addition
New Color Palette
for R
Easy quick PCA
analysis in R
Create a CLI for R
with npm
Bug when
Creating
Reference Maps
with Choroplethr
Other sites
SAS blogs
Jobs for R-users
(This article was first published on R – Strenge Jacke!, and kindly contributed to R-
bloggers)
Share Tweet
First, we load the required packages and sample data. We want to plot
several items from an index, where all these items are 4-point Likert
scales. The items deal with coping of family caregivers, i.e. how well
they cope with their role of caring for an older relative.
To find the required variables in the data set, we search all variables
for a specific pattern. We know that the variables from the COPE-
index all have a cop in their variable name. We can easily search for
variables in a data set with the find_var()-function.
1 library(sjPlot)
2 library(sjmisc)
3 data(efc)
4
5 # find all variables from COPE-Index, which al
6 # have a "cop" in their variable name, and the
7 # plot the items as likert-plot
8 mydf <- find_var(efc, pattern = "cop", out = "
9 plot_likert(mydf)
The plot is not perfect, because for those values with just a few
answers, we have overlapping values. However, there are quite some
options to tweak the plot. For instance, we can increase the axis-range
(grid.range), show cumulative percentage-values only at the ende of
the bars (values = "sum.outside") and show the percentage-sign
(show.prc.sign = TRUE).
1 plot_likert(
2 mydf,
3 grid.range = c(1.2, 1.4),
4 expand.grid = FALSE,
5 values = "sum.outside",
6 show.prc.sign = TRUE
7 )
varimax-rotation
As we can see, six items are associated with component one, while
three items mainly load on the second component. The indices that
indicate which items is associated with which component is returned
by the function in the element $factor.index. So we save this in an
object that can be used to create a grouped Likert-plot.
There are even mote options to tweak the Likert-plots. Find the full
documentation at
https://strengejacke.github.io/sjPlot/index.html.
Share Tweet
To leave a comment for the author, please follow the link and comment on their blog:
R – Strenge Jacke!.
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such
as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation),
programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping)
statistics (regression, PCA, time series, trading) and more...
If you got this far, why not subscribe for updates from the site?
Choose your flavor: e-mail, twitter, RSS, or facebook...
Like 230 Share Tweet Share
Search R-bloggers
Search.. Go
Sponsors
Our ads respect your privacy. Read our
Privacy Policy page to learn more.