PlotDistro: Plot a value relative to a background distribution from a...

Description Usage Arguments Value Examples

View source: R/PlotDistro.R

Description

Plot a value relative to a background distribution from a palmprint data.frame.

Usage

1
2
3
4
5
6
7
PlotDistro(
  pp,
  pp.bg,
  plotValue,
  distrocol = "skyblue",
  set.ylab = "palmDB density"
)

Arguments

pp

A palmprint.df row to use for the plot "value"

pp.bg

A multiple palmprint.df for the plot background "distribution"

plotValue

Which numeric column to use for pp and pp.bg. One of "score", "pssm_total_score", "pp_length", "v1_length", "v2_length"

distrocol

Color to use for distribution ["skyblue"]

set.ylab

Label for y-axis ["palmDB density"]

Value

A ggplot2 object

Examples

1
2
3
4
5
data("waxsys.palmprint")
data("palmdb")

PlotDistro( pp = waxsys.palmprint, pp.bg = palmdb, "score", "black")
PlotDistro( pp = waxsys.palmprint, pp.bg = palmdb, "pp_length", "skyblue")

palmid documentation built on Oct. 15, 2021, 9:06 a.m.