inst/extdata/examples/R/plot-line-symbol.R

if (file.exists('line-symbol.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('line-symbol.xlsx')
} else if (file.exists('line-symbol.RData')) { # or plot figures directly in R:
  d <- dget('line-symbol.RData')
  nicerplot::nplot(d, type = c('line'), title = c('Ontwikkeling EMU-schuld in schokscenario's'), y_title = c('%-bbp'), x_lim = c(2017.5, 2025.5), line_symbol = c(0, 20, 20, 20), style = c('default'), open = FALSE)
} else print(paste('Please download', xlsx_data_file, 'or', rdata_file, 'to create the nice R plot.'))
data-science-made-easy/nicerplot documentation built on Nov. 3, 2024, 9:23 p.m.