This function converts various objects to a data frame.
# S3 method for character
fortify_data_frame(data, ..., data_arg = caller_arg(data), call = NULL)# S3 method for numeric
fortify_data_frame(data, ..., data_arg = caller_arg(data), call = NULL)
# S3 method for logical
fortify_data_frame(data, ..., data_arg = caller_arg(data), call = NULL)
# S3 method for complex
fortify_data_frame(data, ..., data_arg = caller_arg(data), call = NULL)
A data frame with following columns:
.names
: the names for the vector (only applicable if names exist).
value
: the actual value of the vector.
An object to be converted to a data frame.
These dots are for future extensions and must be empty.
The argument name for data
. Developers can use it to
improve messages. Not used by the user.
The execution environment where data
and other arguments for
the method are collected, e.g., caller_env()
.
Developers can use it to improve messages. Not used by the user.
Other fortify_data_frame methods:
fortify_data_frame.default()
,
fortify_data_frame.dendrogram()
,
fortify_data_frame.matrix()
,
fortify_data_frame.phylo()