make_comparison | R Documentation |
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
)
MSA1 |
character(1) element of column 'MSA' that must be present in 'rate_table' |
MSA2 |
character(1) element of column 'MSA' that must be present in 'rate_table' |
logscale |
logical(1) only for type "scatter"; if TRUE (default) log10 transformation is applied to rates |
type |
character(1) one of "scatter" or "ratios"; if the latter, a histogram of ratios is produced with MSA1 rates in numerator |
min.rate |
numeric(1) minimum number per 100000 for cancer type to be included |
rate_table |
data.frame like 'woncan' in YESCDS or BiocYES |
data(woncan)
make_comparison(type="scatter", rate_table=woncan)
make_comparison(type="ratios", rate_table=woncan)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.