Description Usage Arguments Author(s) Examples
PlotStat
is a function for ploting a stat of set of simulation with respect to one or two parameters specified by user
1 2 3 |
GradTable |
A dataframe (usually output of |
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 |
Kamil Jaron kamiljaron at gmail.com
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.