Description Usage Arguments Examples
Creates plots for numeric questions where their distributions are meant to be comparable to each other (e.g., where they are supposed to sum to 100)
1 2 | graph_linkednum(items, labels, sort = "entry", totalcheck = NA,
central = "mean", spread = "sd1", fill = "tomato1")
|
items |
Data frame with only items to be graphed |
labels |
Vector, in order of |
sort |
The order in which items should be displayed upon graphing.
Options include: |
totalcheck |
Includes a value for if the user wants to omit rows for which the constituent items do not correctly add up to some total value |
central |
For horizontal bar graphs, specifies the statistic used for
the height of the bars. Options include: |
spread |
For horizontal bar graphs, specifies the statistic used for
the endpoints of the error bars. Options include: |
fill |
Specifies the color of the bars in the graph, see <http://sape.inf.usi.ch/quick-reference/ggplot2/colour> for color references |
1 2 3 4 | # Graph all time use questions
graph_linkednum(survey[get_matchvars(survey, "TimeUse_")],
labels=c("Talking", "Eating", "Drinking"),
totalcheck=100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.