context_plot: Creates dotplot with focus highlighted

Description Usage Arguments

Description

Input context_data needs to have column 1 groups and column 2 data.

Usage

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")

Arguments

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


pocdata/pocr documentation built on Jan. 5, 2022, 9:54 a.m.