what_graph: Graph Options

View source: R/what_graph.R

what_graphR Documentation

Graph Options

Description

what_graph is a function used to analyze what graphs can be created from certain variables depending on the quantity and data type of the variables.

Usage

what_graph(df, ...)

Arguments

df

A data frame.

...

1-3 unquoted column names of the specified df argument, separated by commas.

Details

It is important that before this function is used, the columns of interest have the correct data type. Specifically, a categorical or discrete variable needs to have a data type of 'factor' and a continuous variable needs to have a data type of 'numeric'

If the variable types are not numeric or factor the function will not return a list of possible graphs.

Value

what_graph returns a character vector of possible graphs that can be created from the variables that are input.

Examples

what_graph(iris, Sepal.Length, Sepal.Width)


rachael-ryan/Lab4Package documentation built on June 11, 2022, 7:20 a.m.