plot_catches | R Documentation |
Plot catch data as a stacked barplot
plot_catches(
ct,
leg_font_size = 12,
leg_key_size = 0.7,
leg_ratio = c(1, 2),
clip_cover = 2,
xlim = c(1966, year(Sys.time())),
x_breaks = xlim[1]:xlim[2],
x_expansion = 1,
x_labs_mod = 5,
ylim = c(0, 450),
y_breaks = seq(0, 400, 100)
)
ct |
The data frame which is read in from |
leg_font_size |
The legend font size |
leg_key_size |
The size in cm of the bars of color in the legend |
leg_ratio |
A vector of length two, for the ratio of the legend size
vs the plot size respectively. Default is c(1, 2). You will likely need to
change this if changing |
clip_cover |
There is a white rectangle drawn on top of the plot
to cover any of the plot that made it outside the plot area. |
xlim |
The year limits to plot |
x_breaks |
The year value tick marks to show for the x axis |
x_expansion |
Amount to expand the x axis. See the |
x_labs_mod |
Value for major X-axis tick marks. Every Nth tick will be longer and have a label. The first and last will be shown regardless of what this number is |
ylim |
The y-axis min and max limits for the plot |
y_breaks |
The tick mark values to show for the y axis |
A ggplot2::ggplot()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.