what_graph | R Documentation |
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.
what_graph(df, ...)
df |
A data frame. |
... |
1-3 unquoted column names of the specified df argument, separated by commas. |
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.
what_graph returns a character vector of possible graphs that can be created from the variables that are input.
what_graph(iris, Sepal.Length, Sepal.Width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.