View source: R/ontogeny_plot.R
ontogeny_plot | R Documentation |
ontogeny_plot
uses the betas from the Simcyp Simulator to
make graphs of the ontogenies of all the enzymes and transporters included
in the Simulator.
ontogeny_plot(
enzyme = NA,
enzyme_type = NA,
ontogeny_equations_to_use = NA,
simulator_version = 23,
compare_to_no_ontogeny = FALSE,
age_range = c(0, 18),
x_axis_interval = 3,
facet1_column,
facet1_title = NA,
facet2_column,
facet2_title = NA,
colorBy_column,
color_set = "default",
legend_position = "right",
save_graph = NA,
fig_height = NA,
fig_width = NA
)
enzyme |
drug-metabolizing enzymes and transporters to plot, which
should be supplied as either a single string, in quotes, that we'll try to
match (e.g., "CYP3A4" will get you both the Upreti and Salem CYP3A4
ontogeny profiles as well as "CYP3A4 in vitro" and "Intestinal CYP3A4") or
as a character vector of the enzymes or transporters you want. Options are
listed in the data.frame OntogenyEquations. Whatever you supply, we'll look
for it in either the column "Enzyme", which is just the actual isoform
name, or in the column EnzymeDescription, which specifies exactly which
ontogeny profile it is. To see the object OntogenyEquations and get a
better idea of what we mean, type this into the console:
|
enzyme_type |
type of enzyme or transporter. Instead of graphing only a
specific enzyme or enzymes, you can request any enzymes or transporters of
a specific type. Please see the options in "OntogenyEquations" in the
column "EnzymeType". This should be supplied as a character vector, e.g.,
|
ontogeny_equations_to_use |
By default, the ontogeny equations are from
the object OntogenyEquations, which is from the Simcyp Simulator help file.
This can be useful for more-advanced R users if, for example, you want to
filter OntogenyEquations more flexibly than just listing a string or
character vector of enzymes to match for the arguments |
simulator_version |
Simcyp Simulator version to display. Options are 21, 22, 23 (default), or, once it's available on Simcyp Consultancy Team VDIs, 24. |
compare_to_no_ontogeny |
TRUE or FALSE (default) for whether to show a line on the graph for no ontogeny, which would be a horizontal line at 1. |
age_range |
age range in years as a numeric vector. Default is
|
x_axis_interval |
optionally specify the x-axis interval to use. Default is an interval of 3 years. |
facet1_column |
optionally break up the graph into small multiples; this
specifies the first of up to two columns to break up the data by, and the
designated column name should be unquoted, e.g., |
facet1_title |
optionally specify a title to describe facet 1. This is
ignored if |
facet2_column |
optionally break up the graph into small multiples; this
specifies the second of up to two columns to break up the data by, and the
designated column name should be unquoted, e.g., |
facet2_title |
optionally specify a title to describe facet 2. This is
ignored if |
colorBy_column |
(optional) the column in |
color_set |
the set of colors to use. Options:
|
legend_position |
Specify where you want the legend to be. Options are "left", "right" (default in most scenarios), "bottom", "top", or "none" if you don't want one at all. |
save_graph |
optionally save the output graph by supplying a file name in quotes here, e.g., "My ontogeny graph.png"If you leave off ".png", the graph will be saved as a png file, but if you specify a different graphical file extension, it will be saved as that file format. Acceptable graphical file extensions are "eps", "ps", "jpeg", "jpg", "tiff", "png", "bmp", or "svg". Do not include any slashes, dollar signs, or periods in the file name. Leaving this as NA means the file will not be saved to disk. |
fig_height |
figure height in inches |
fig_width |
figure width in inches |
a ggplot2 graph
# none yet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.