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

Description Usage Arguments Value Examples

View source: R/plot.raw.data.R

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

1
2
## S3 method for class '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

1
2
3
4
5
6
7
8
9
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)

BatchMap documentation built on May 2, 2019, 3:45 p.m.