plot_by_segreg_type: Draw a graphic showing the number of markers of each...

View source: R/plot_raw_data.R

plot_by_segreg_typeR Documentation

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

plot_by_segreg_type(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)

Value

a ggplot graphic

Examples


data(onemap_example_out) #Outcrossing data
plot_by_segreg_type(onemap_example_out)
plot_by_segreg_type(onemap_example_out, subcateg=FALSE)

data(onemap_example_bc)
plot_by_segreg_type(onemap_example_bc)

data(mapmaker_example_f2)
plot_by_segreg_type(mapmaker_example_f2)



onemap documentation built on Nov. 26, 2022, 9:05 a.m.