sr_plot_create_tooltip | R Documentation |
Creates tool tips in a style that works for schoolreportr
plots. May not work for other plots.
Works best for grouped line charts.
sr_plot_create_tooltip(plt, group_color, y_text, total_number)
plt |
Plot in which to add tool tip. |
group_color |
Column name, as a string, that represents a grouping variable. |
y_text |
The column name, as a string, of the y-axis variable. |
total_number |
The column name, as a string of a column containing a number we want to add to the tool tip. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.