PlotStat: PlotStat

Description Usage Arguments Author(s) Examples

View source: R/PlotStat.R

Description

PlotStat is a function for ploting a stat of set of simulation with respect to one or two parameters specified by user

Usage

1
2
3
PlotStat(GradTable, stat = "width", par1 = "s", par2 = NA,
  legend_position = "topright", add = F, pal = NA, xlim = NA,
  ylim = NA, pch = 20, ...)

Arguments

GradTable

A dataframe (usually output of FillSetting) or FillSettingByHZAR

stat

The variable to be plot on y axis

par1

The variable to be plot on x axis

par2

The variable used for the coloring of points

legend_position

is changing a position of the legend in the picture

add

if = T funciton will just add points to existing plot

pal

is a vector of colous used for colouring categories of the second parameter. By default the pallete will be generated as 'Set1' color brewer pallete with apropriate number of categories

xlim

is equvalent of parameter xlim from plot

ylim

is equvalent of ylim from plot

pch

is equvalent of pch from plot

...

addenitional arguments passed to plot function

Author(s)

Kamil Jaron kamiljaron at gmail.com

Examples

1
2
3
4
5
   PlotStat(GradTable, 'width', 's', 'b', 'topright')
   # If there are many simulations in GradTable, too many points will overlap
   # adding a noise to selection might help see more of the data points
   GradTable$s_norm <- GradTable$s + rnorm(nrow(GradTable), 0, 0.007)
   PlotStat(GradTable, 'width', 's_norm', 'b', 'topright')

KamilSJaron/ConjunctionStats documentation built on May 7, 2019, 12:06 p.m.