inst/extdata/examples/R/plot-stacked-area.R

if (file.exists('stacked-area.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('stacked-area.xlsx')
} else if (file.exists('stacked-area.RData')) { # or plot figures directly in R:
  d <- dget('stacked-area.RData')
  nicerplot::nplot(d, type = c('area='), title = c('NL'ers hebben buitenlandse obligaties'), y_title = c('mld euro'), scale = c(100), x_lim_follow_data = c('y'), legend_order = c(3, 2, 1, 4), area_stack_name = c('Totaal belangrijkste drie landen'), 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.