Create column chart with pattern with ggplot2
TS_plot_column_pattern_chart.RdCreate column chart with pattern with ggplot2
Usage
TS_plot_column_pattern_chart(
data,
x,
y,
fill,
fill_colours,
name = "",
ggplot_theme,
ylim_max,
border_colour,
plot_title,
plot_subtitle,
pattern,
pattern_colour = "black",
pattern_fill = "black",
pattern_density = 0.1,
plot_n_sequences
)Arguments
- x
Variable to plot on x-axis.
- y
Variable to plot on y-axis.
- fill
Variable to fill on (group variable).
- fill_colours
Vector. Fill colours to use.
- name
String. Legend title. Defaults to "Sample"
- ggplot_theme
Optional. A specified ggplot_theme to use.
- plot_data
A dataframe containing the long format data which you want to plot with precomputed proportions.
- ylim
Optional, numeric. Use to specify max y_lim value.