outlierHist: a function for representing distribution using histogram and...

Description Usage Arguments Value Examples

View source: R/graphicalFunctions.R

Description

produce a graphic of the ditribution of a trait with the detected outlier points according to a specified flag method

Usage

1
outlierHist(datain, trait, flag, labelX)

Arguments

datain

a dataframe

trait

a variable to explore

flag

a method of flag for outlier detection (column name in datain)

labelX

a label for abscissa

Value

a graph

Examples

1
2
3
4
5
library(dplyr)
data(plant4)
mydata<-mutate(plant4,flag=if_else(Phy <= 0.215,0,1))
outlierHist(datain=mydata,trait="Phy",
              flag="flag",labelX="Phyllocron")

sanchezi/openSilexStatR documentation built on Sept. 10, 2020, 1:03 p.m.