Description Usage Arguments Details Value Examples
The function generates a bar chart with fill colors determined by likert 5-point scale. The chart includes labels with the proportion, labels with averages (1-5) on top of bars, and the fill is red-yellow-green colored.
1 2 3 4 5 6 7 8 9 |
x |
a tbl() with the data. |
axis.x.wrap |
The x.axis text wrap. |
wrap_RTL |
If T, uses unicode characters to have the text wrap fitted for RTL languages (e.g., Hebrew and Arabic). This parameter is also required to preserve UTF-8 encoding when using Hebrew. |
likert_scale_labels |
The labels for the likert scale. The default is a 5-point likert scale with "1 - Extremely Dissatisfied", 2:4, "5 - Extremely Satisfied". |
likert_scale_fill |
Provide scale to be used. Makes colors consistent, even if some levels Are missing from data. Defaults to brewer "RdYlGn". |
likert_scale_numeric |
Controls the numeric values related to the likert, for example, can be modified to a 1-7 likert scale by using 1:7 along with the proper updates to the likert_scale_labels |
The function uses the raw data in a tabular format (each column is a variable). NAs as omitted.
Assumes that the columns are numeric with values 1-5.
A ggplot2 as specified above.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.