inst/extdata/examples/R/plot-bars-highlight-series.R

if (file.exists('bars-highlight-series.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('bars-highlight-series.xlsx')
} else if (file.exists('bars-highlight-series.RData')) { # or plot figures directly in R:
  d <- dget('bars-highlight-series.RData')
  nicerplot::nplot(d, type = c('bar='), title = c('Number of phones (Europe yellow)'), highlight_series = c(2), highlight_col = c('yellow'), 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.