inst/extdata/examples/R/plot-line-diamond-color.R

if (file.exists('line-diamond-color.xlsx')) { # plot figures from Excel file:
  nicerplot::nplot('line-diamond-color.xlsx')
} else if (file.exists('line-diamond-color.RData')) { # or plot figures directly in R:
  d <- dget('line-diamond-color.RData')
  nicerplot::nplot(d, type = c('line'), title = c('Number of phones US vs. Europe'), line_symbol = c(0, 18), line_symbol_col = c('NA, brown'), order = c(1, 2), 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.