visualise_variables_x: Visualise each Variable in a given Dataset

Description Usage Arguments Value See Also Examples

Description

Plots an appropriate visualisations for each attribute in a given dataset. This function utilises ggplot2 to design and plot the Visualisations. Plots a histogram for numeric variables. Plots a bar chart for factor variables. There is also an option to click through the points one by one, or print them all simultaneously. The plots are outputed as a list. The plots can also be saved to a specified directory. Note, that it is crucial that the variables are correctly defined as either numeric or categorical.

Usage

1
visualise_variables_x(dataset, click = TRUE, directory = NULL)

Arguments

dataset

A dataset to be visualise

click

A boolean value, indicating whether to click through the plots one by one, default is True,

directory

A character object specifying the directory where the data frame is to be saved as a .csv file.

Value

Outputs a variety of bar charts or histograms

See Also

visualise_qqplot, visualise_residuals, visualise_variables_xx

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#-- Example 1: LungCap Data --#

# Regular Visualisations of the data frame, with click option
visualise_variables_x(dataset = lungcap, click = TRUE)

# Regular visualisations without the click option
visualise_variables_x(dataset = lungcap, click = FALSE)

#-- Example 2: Titanic Data --#

# Regular visulations with click option
visualise_variables_x(dataset = titanic, click = TRUE)

# Regular visulations without click option
visualise_variables_x(dataset = titanic, click = FALSE)

oislen/BuenaVista documentation built on May 16, 2019, 8:12 p.m.