pgdata: Proportions of genotypes and distribution of missing values

Description Usage Arguments Value Examples

Description

Computes the proportions of genotypes in each columne, and plots the distribuition of missingness of the data.

Usage

1

Arguments

data

A data frame of genotypes

plot

Plots the proportions of genotypes or missing values? Default FALSE.

type

Plot types, if type = "barplot" this is the barplot of proportions of missing values; if type= "stacked" this is the stacked barplot of proportions of missing values and genotypes; if type= "dist" this is the dot plot of missing values distribution. Default is not plot.

...

Other arguments for future methods

Value

It returns a matrix of proportions of genotypes and missing values for each column

Examples

1
2
3
4
5
6
data(barley)
data <- barley[-1:-2,-1]
pro <- pgdata(data)
pro <- pgdata(data,plot=TRUE,type="dist")
pro <- pgdata(data,plot=TRUE,type="barplot")
pro <- pgdata(data,plot=TRUE,type="stacked")


Search within the linkim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.