Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

PopGenome (version 2.1.6)

PopGplot: Smoothed line-plot for multiple populations

Description

This function plots values with smoothed lines using spline interpolation.

Usage

PopGplot(values,colors=FALSE,span=0.1,ylab="",xlab="", ylim=c(min(values,na.rm=TRUE),max(values,na.rm=TRUE)))

Arguments

values
the statistical values (matrix); columns=populations
colors
the colors for each population (character vector)
span
the degree of smoothing
ylab
a title for the y axis
xlab
a title for the x axis
ylim
ranges for the y axis

Examples

Run this code

# GENOME.class <- readSNP("Arabidopsis",CHR=1)
# GENOME.class.slide <- sliding.window.transform(test,1000,1000)
# GENOME.class.slide <- diversity.stats(GENOME.class.slide)
# values <- GENOME.class.slide@nuc.divesity.within
# PopGplot(values)

Run the code above in your browser using DataLab