inst/extdata/examples/R/plot-fan-example.R

if (file.exists('fan-example.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('fan-example.xlsx')
} else if (file.exists('fan-example.RData')) { # or plot figures directly in R:
  d <- dget('fan-example.RData')
  nicerplot::nplot(d, style = c('fan'), title = c('Inflatie'), y_title = c('mutatie in %'), 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.