Learn R Programming

BatchMap (version 1.0.2.0)

plot.by.segreg.type: Draw a graphic showing the number of markers of each segregation pattern.

Description

The function receives an object of class onemap. For outcrossing populations, it can show detailed information (all 18 possible categories), or a simplified version.

Usage

# S3 method for by.segreg.type
plot(x, subcateg = TRUE, ...)

Arguments

x

an object of class onemap

subcateg

a TRUE/FALSE option to indicate if results will be plotted showing all possible categories (only for outcrossing populations)

...

Not used

Value

a ggplot graphic

Examples

Run this code
# NOT RUN {
data(example.out) #Outcrossing data
plot.by.segreg.type(example.out)
plot.by.segreg.type(example.out, subcateg=FALSE)

# You can store the graphic in an object, then save it.
# For details, see the help of ggplot2's function ggsave()
data(example.out) #Outcrossing data
g <- plot.by.segreg.type(example.out)
ggsave("SegregationTypes.jpg", g, width=7, height=4, dpi=600)

# }

Run the code above in your browser using DataLab