graph.etalonnage: graph

View source: R/graph.R

graph.etalonnageR Documentation

graph

Description

S3 method for class etalonnage.

Usage

## S3 method for class 'etalonnage'
graph(
  x,
  start_graph = x$first_date,
  title = NULL,
  save = FALSE,
  filename = NULL,
  legend_text_size = 12,
  axis_text_size = 11,
  annotation_size = 5.5,
  date_breaks = "1 year",
  y_limits = NULL,
  annotate = FALSE,
  annotation_x = 45,
  annotation_y = -0.06
)

Arguments

x

An object of class etalonnage.

start_graph

A character indicating the first date to plot, must be of the form "YYYY-MM-01" - if missing defaults to x$first_date.

title

A character indicating a title for the plot - if missing defaults to NULL.

save

A boolean - if missing defaults to FALSE.

filename

A character, file name to create on disk - if missing defaults to NULL.

legend_text_size

A numeric - if missing defaults to 12.

axis_text_size

A numeric - if missing defaults to 11.

annotation_size

A numeric - if missing defaults to 5.5.

date_breaks

A character indicating date breaks on the x axis of the plot - if missing defaults to "1 year".

y_limits

A vector of two non-NULL numerics (ymin, ymax) - if missing defaults to NULL.

annotate

A logical - if missing defaults to FALSE.

annotation_x

A numeric indicating the position of the annonation on x-axis - if missing defaults to 45 (days).

annotation_y

A numeric indicating the position of the annonation on y-axis - if missing defaults to -0.06 (- 6 %).

Value

A ggplot2 plot.


aflatoune/approche-directe documentation built on May 30, 2022, 1:56 p.m.