Analyzes question variance as in table_question_variance
and plots the result as a tile plot.
1 | plot_question_variance(data, q_cols, cols_to_analyze=q_cols[1:5], functions_to_use="var")
|
data |
Dataset. |
q_cols |
Question columns |
cols_to_analyze |
(Optional.) Only a subset of q_cols, if that's all you want to look at. Default is all columns. |
function_to_use |
(Optional.) What function to analyze across parties? Default is "var". Has to be length 1 |
palette |
(Optional.) Colour palette for the plot. Default: "BuGn". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.