lineplot {fpa} | R Documentation |
Plot the fixation probabilities for specific details
Description
The function lineplot() provides quick tools for plotting more detailed fixation probabilities for specific condition(s) and region(s). The function generates 2-dimensional line plots with "Time" as x, and "Fixation Probability" as y.
Usage
lineplot(data, Region = "All", Condition = "All")
Arguments
data |
the data frame returned by get_pattern function. |
Region |
the intended region(s) to plot. It can be a string ("All"), a number (e.g., 1), or a vector (e.g., c(1,2)). |
Condition |
the intended condition(s) to plot. It can be a string ("All"), a number (e.g., 1), or a vector (e.g., c(1,2)). |
Author(s)
Jinlu Cao
See Also
get_pattern
, ft2fp
, plot_pattern
Examples
data(pattern)
lineplot(pattern)
lineplot(pattern, Region="All", Condition=1)
lineplot(pattern, Condition=c(1,2))
lineplot(pattern, Region=2)
lineplot(pattern, Region=c(2,3), Condition=c(3,4,5))
[Package fpa version 1.0 Index]