outlierHist.Rd
produce a graphic of the ditribution of a trait with the detected outlier points according to a specified flag method
outlierHist(datain, trait, flag, labelX)
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 |
a graph
library(dplyr) data(plant4) mydata<-mutate(plant4,flag=if_else(Phy <= 0.215,0,1)) outlierHist(datain=mydata,trait="Phy", flag="flag",labelX="Phyllocron")#> Error in ggplot(mydata, aes_string(x = trait)): objet 'mydata' introuvable