inst/extdata/examples/R/plot-bars-and-line.R

if (file.exists('bars-and-line.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('bars-and-line.xlsx')
} else if (file.exists('bars-and-line.RData')) { # or plot figures directly in R:
  d <- dget('bars-and-line.RData')
  nicerplot::nplot(d, type = c('bar=, bar=, bar=, bar=, bar=, line'), title = c('Groeibijdragen bestedingen'), y_title = c('%-punt bbp-groei'), name_col = c('bbp-groei=black'), line_lty = c(3), 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.