htk_lineplot: Line barplots with OECD template style to display timeseries...

View source: R/htk_lineplot.R

htk_lineplotR Documentation

Line barplots with OECD template style to display timeseries evolutions in the housing toolkit chapters

Description

Function that plots a lines in a standardized way. The function is built on the assumption that the data is structured in the agreed format (first column as countries, second as period, others as key variables)

Usage

htk_lineplot(
  data = resilience_database,
  subtitle = ".",
  title = NULL,
  Xlabel = "Date",
  Ylabel = "Price index",
  ymin = 0,
  ymax = 120,
  ybreak = 10,
  xbreak = "5 years",
  start_date = 1970,
  end_date = 2018,
  file = NULL,
  path = NULL,
  width = 4,
  height = 4,
  dpi = 300
)

Arguments

data

dataframe to be used for the plot

subtitle

subtitle of the plot

title

title of the plot

Xlabel

label of the X axis

Ylabel

label of the Y axis

ymin

minimum y value to be displayed

ymax

maximum y value to be displayed

ybreak

difference between Y ticks

xbreak

difference between X ticks

start_date

data start date

end_date

data end date

file

name of the file containing the plot were it to be saved, name must be followed by .png

path

path of where the file is to be saved

width

width of the image to be saved

height

height of the image to be saved

dpi

resolution

Value

Returns a standardized single line plot

Author(s)

Manuel Betin Maxime Nguyen


manuelbetin/OECDHousingToolkit documentation built on July 5, 2023, 12:02 p.m.