plot_general_data: General function for plotting within IOHanalyzer

Description Usage Arguments

View source: R/plotDataSetList.R

Description

General function for plotting within IOHanalyzer

Usage

1
2
3
4
5
6
plot_general_data(df, x_attr = "ID", y_attr = "vals",
  type = "violin", legend_attr = "ID", scale.xlog = F,
  scale.ylog = F, scale.reverse = F, p = NULL, x_title = NULL,
  y_title = NULL, plot_title = NULL, upper_attr = NULL,
  lower_attr = NULL, subplot_attr = NULL, show.legend = F,
  inf.action = "none", violin.showpoints = F, ...)

Arguments

df

The dataframe containing the data to plot. It should contain at least two columns: 'x_attr' and 'y_attr'

x_attr

The column to specify the x_axis. Default is 'algId'

y_attr

The column to specify the y_axis

type

The type of plot to use. Currently available: 'violin', 'line', 'radar', 'bar', hist' and 'ribbon'

legend_attr

Default is 'algId' This is also used for the selection of colorschemes

scale.xlog

Logarithmic scaling of x-axis

scale.ylog

Logarithmic scaling of y-axis

scale.reverse

Decreasing or increasing x-axis

p

A previously existing plot on which to add traces. If NULL, a new canvas is created

x_title

Title of x-axis. Defaults to x_attr

y_title

Title of x-axis. Defaults to x_attr

plot_title

Title of x-axis. Defaults to no title

upper_attr

When using ribbon-plot, this can be used to create a shaded area. Only works in combination with‘lower_attr' and 'type' == ’ribbon'

lower_attr

When using ribbon-plot, this can be used to create a shaded area. Only works in combination with‘upper_attr' and 'type' == ’ribbon'

subplot_attr

Which attribute of the dataframe to use for creating subplots

show.legend

Whether or not to include a legend

inf.action

How to deal with infinite values. Can be 'none', 'overlap' or 'jitter'

violin.showpoints

Wheteher or not to show individual points when making a violinplot

...

Additional parameters for the add_trace function


IOHanalyzer documentation built on Oct. 21, 2021, 5:06 p.m.