plot_man | R Documentation |
Plot mediation exposure, mediator, and outcome per mediator in M
, as used in lotman
&
hitman
, using ggplot2.
plot_man(
E,
M,
Y,
name = "top_mediators",
main.v = "",
xlab = "Log2 abundance",
ylab = "Outcome",
check.names = TRUE,
manual.color = NULL
)
E |
A numeric vector of exposures. |
M |
A numeric matrix-like data object with one row per feature and one column per sample of mediators. |
Y |
A numeric vector of |
name |
Name of file to create. Set to |
main.v |
Character vector of main titles for plot. |
xlab |
Label for x-axis. |
ylab |
Label for y-axis. |
check.names |
Logical; should |
manual.color |
Vector passed to both |
If manual.color
is given, its length should be length(unique(E))
.
Invisibly, a ggplot2 object from the last row of M
that was plotted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.