ggvis_stripchart | R Documentation |
Plot emissions over time, using ggvis
ggvis_stripchart( input_data, caption = comment(input_data), x = ~year, y = ~ems_qty, stroke = NULL, fill = NULL, width = 800, height = 400, ..., y_axis_title = NULL, y_axis_format = "s", verbose = FALSE )
input_data |
data frame |
... |
arguments to |
BY2011_NOx_data <- filter(BY2011_annual, pol_abbr == "NOx", year %in% 1990:2030) BY2011_NOx_by_cnty <- BY2011_NOx_data %>% annual_emissions_by(cnty_abbr) BY2011_NOx_by_cnty %>% ggvis_stripchart(stroke = ~cnty_abbr) BY2011_NOx_by_cnty %>% ggvis_stripchart(fill = ~cnty_abbr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.