R/viz.R
make_comparison.Rd
make an interactive histogram of rate ratios, or a scatterplot for rate comparisons, between two areas
make_comparison(
MSA1 = "Baton Rouge, LA",
MSA2 = "Tucson, AZ",
logscale = TRUE,
type = "scatter",
min.rate = 10,
rate_table
)
character(1) element of column 'MSA' that must be present in `rate_table`
character(1) element of column 'MSA' that must be present in `rate_table`
logical(1) only for type "scatter"; if TRUE (default) log10 transformation is applied to rates
character(1) one of "scatter" or "ratios"; if the latter, a histogram of ratios is produced with MSA1 rates in numerator
numeric(1) minimum number per 100000 for cancer type to be included
data.frame like `woncan` in YESCDS or BiocYES
data(woncan)
make_comparison(type="scatter", rate_table=woncan)
make_comparison(type="ratios", rate_table=woncan)