plot_value2: Plot value by year for metric-category

Description Usage Arguments See Also Examples

View source: R/visualize.R

Description

Mostly a wrapper for plot_bar with some additional formatting. It's expected that the input table will only contain a single group-quarter-segment.

Usage

1
plot_value2(df, plot_title = "", measure = "value", n = 5)

Arguments

df

data frame with summary results

plot_title

caption to show in plot

measure

variable to be plotted on the y axis

n

passed to int_breaks for x-axis labelling

See Also

Other functions to run dashboard visualization: get_county_map(), int_breaks(), join_county_map(), plot_bar(), plot_county(), plot_month(), plotly_config(), run_visual_county(), ui_button_layout()

Examples

1
2
3
4
library(dplyr)
data(dashboard)
x <- filter(dashboard, group == "all_sports", quarter == 4, segment == "Gender")
plot_value2(x)

southwick-associates/sadash documentation built on Jan. 6, 2022, 5:17 p.m.