Input context_data needs to have column 1 groups and column 2 data.
1 2 3 | context_plot(context_data, focus = "none", xlab, title = "",
state_label = "Washington", colors = portal_colors[c(8, 4, 2)],
title_size = 1.2, font = "Open Sans")
|
context_data |
data.frame where first columns is a factor for y-axis and second is numeric for x-axis |
focus |
character corresponding to factor level(s) to highlight |
xlab |
character for x-axis label |
title |
character for plot title |
state_label |
character to match to highlight state |
colors |
colors for the manual color scale |
title_size |
relative size of the title |
font |
character, name of font to use |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.