htk_lineplot | R Documentation |
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)
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
)
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 |
Returns a standardized single line plot
Manuel Betin Maxime Nguyen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.