Learn R Programming

dataesgobr (version 1.0.0)

graphic_data: Draw a plot using the pararameters passed

Description

Draw a plot using the pararameters passed

Usage

graphic_data(type, data, columns, dataSelected = NULL, xlim = NULL,
  ylim = NULL, nClasses = NULL)

Arguments

type

String with plot type

data

Data.frame that contains the data to plot

columns

Columns to represent in the plot

dataSelected

Rows selected from the data

xlim

Specifies the limit for x axis

ylim

Specifies the limit for y axis

nClasses

Split data in classes to draw in bloxplot

Value

plot

Examples

Run this code
# NOT RUN {
library(dataesgobr)
# }
# NOT RUN {
datasets <- search_by_title('atestados')
datasetsfiltered <- filter_by_title(datasets, "1999")
dataset <- load_dataset(datasetsfiltered)
download_data(dataset, "text/csv", TRUE, noconfirm = TRUE)
content <- load_data(file.path(tempdir(), "DB_HER_1999.csv"))
graph <- graphic_data("plot", content, "SEXO", xlim = 3, ylim = 2000)
graph
# }

Run the code above in your browser using DataLab