bar_plot: Create bar plot with ggplot2

View source: R/plots.R

bar_plotR Documentation

Create bar plot with ggplot2

Description

Create bar plot with ggplot2

Usage

bar_plot(
  df,
  x,
  y,
  text = NA,
  group,
  fill = NULL,
  colorbar = NA,
  rev = FALSE,
  facet = "none",
  plot = NA,
  title = "",
  xlab = "",
  ylab = ""
)

Arguments

df

Dataframe, Dataframe to create plot with

x

String, Value to plot on X axis

y

String, Value to plot on Y axis

text

String, Hover info text

group

String, Value to color/group data

fill

String, value to fill bars by color

colorbar

String, Should default colors be used

rev

Boolean, Plot bars in reverse order (alignment sum) for correct colors

facet

String, Should data be ordered by group

plot

String, Extra condition for ratio plot

title

String, Title for plot

xlab

String, Label for X axis

ylab

String, Label for Y axis

Value

gg, Plot object (ggplot2)


LUMC/dgeAnalysis documentation built on Aug. 16, 2022, 6:23 a.m.