Description Usage Arguments Value Examples
View source: R/plotting.functions.R
Render a scatter plot
1 2 3 4 5 6 7 8 9 10 | get.scatter.plot(
x,
y,
x_label_text = deparse(substitute(x)),
y_label_text = deparse(substitute(y)),
geom_point_size = 2,
element_text_size = 12,
height = NULL,
width = NULL
)
|
x |
a numeric vector. |
y |
a numeric vector. |
x_label_text |
a character element (by default, the vector name). |
y_label_text |
a character element (by default, the vector name). |
geom_point_size |
a numeric element (by default, 2). |
element_text_size |
a numeric value (by default, 12). |
height |
an integer element representing the height of the plot in pixels. |
width |
an integer element representing the width of the plot in pixels. |
none.
1 2 3 4 5 6 7 8 9 10 11 12 | # Load demo data
data("EpiSim.demo")
# Define results
outcomes.summary.df <- EpiSim.demo$results
get.scatter.plot(
x = outcomes.summary.df$delta.overwrite,
y = outcomes.summary.df$maxInc,
height = 500,
width = 756
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.