Description Usage Arguments Value Examples
Make a bar plot of responses on Likert scale
1 2 |
data |
Name of dataset (must be in wide format, i.e., one row per participant) |
xvar |
Name of variable of interest measured on Likert scale |
grpvar |
Name of variable of type factor by which bars should be split |
withingrp |
Logical value indicating whether or not percentages should be calculated within groups |
scalepoints |
Numeric value indicating number of scalepoints in Likert scale (at present, can take on value of 5 or 7) |
decimals |
Logical value indicating whether or not xvar is on a non-integer scale |
scale |
Character value indicating scale labels (at present, can take on values of "Agree", "Quant", or "True") |
... |
Other arguments to pass on to ggplot |
A barplot showing the counts and percentages of all values of xvar
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.