Description Usage Arguments Value Author(s) Examples
View source: R/dexr_output_figure.R
Prints a bar of data as ggplot2 with potentially different colour, linetype, and potentially as facet plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | output_figure_bars(
dexpa,
data,
y_column,
title = NULL,
fill_column = NULL,
fill_legendtitle = fill_column,
fill_legenditemnames = NULL,
facet_column = NULL,
facet_ncol = 4,
filename = paste(dexpa$fig$filenameprefix, gsub(" ", "_", title),
shbasic::shbasic_condenseRunids(data[, "id"]), dexpa$fig$filenamepostfix, sep = "_"),
alpha = 1,
ggplotaddons = NULL,
x_column = "ID",
group_column = NULL,
group_colors = NULL,
position = "dodge",
returnplot = FALSE
)
|
dexpa |
parameter object |
data |
data.frame or list that is rbinded to a data.frame |
y_column |
column name for y data |
title |
figure title |
fill_column |
column used to define colours |
fill_legendtitle |
title for colour legend |
fill_legenditemnames |
vector of names for colour legend items |
facet_column |
column used to define facets |
facet_ncol |
number of columns of facet wrap |
filename |
without extension |
alpha |
transparency |
ggplotaddons |
vector of ggplot objects to add |
x_column |
column name for x data |
position |
passed to geom_bar |
returnplot |
if true the ggplot object is returned |
ggplot2 line visualisation
Sascha Holzhauer
1 | print("todo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.