nplot.character: Plots Data from File or URL

View source: R/plot.R

nplot.characterR Documentation

Plots Data from File or URL

Description

Creates nice figures (PNG, PDF, SVG, JPEG).

Usage

nplot.character(x, ...)

Arguments

x

may be 'path/to/file.xlsx' (please note: at the current moment Excel files must have a meta-tab) or a URL referring to Statistics Netherlands.

...

you can add parameters to customize your figure (see manual). For example 'title' to specify a title, 'pdf = TRUE' if you want a PDF ('png = TRUE' by default), and 'file' to specify file name (with 'file'.png,pdf,jpg,svg as a result).

Details

hello-world.xlsx is an example of an xlsx-file, which you can plot with this function. Please find many other examples in same directory.

Value

path/to/result/file.png

Examples

## Not run: 
# please find a link to hello-world.xlsx in details above
nplot("hello-world.xlsx")
# plot up-to-date data from CBS (Statistics Netherlands)
nplot("https://opendata.cbs.nl/statline/#/CBS/nl/dataset/83913NED/table?dl=323FD")

## End(Not run)

data-science-made-easy/nicerplot documentation built on Nov. 3, 2024, 9:23 p.m.