Description Usage Arguments Value
getLabelByName returns the label for a graph via a data frame with the same column names as the data df, and the rows contain the label(s) for the question with the same name as that column. This function is meant to work with qualtrics data. Qualtrics data contains two extra rows at the top, the first of which contains the question asked to get the data for that column. The idea is that you peel that row off the data, and pass it into getLabelByName along with a column name, and will get back the question/label. To change when the label breaks, change the argument linesize.
1 | getLabelByName(labels, question_name, linesize = 100, ...)
|
labels |
a df containing columns with the column names corresponding to columns names from the data, and the row(s) containing the label that goes with each column. |
question_name |
the column name (aka question name) we finding a name for |
linesize |
When should we wrap our label to a new line? |
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.