rotate_dimensions() takes as imput a `tbl` formatted as | <DIMENSION 1> | <DIMENSION 2> | <...> | and calculates the rotated dimensional space of the feature value.
rotate_dimensions(
.data,
dimension_1_column,
dimension_2_column,
rotation_degrees,
.element,
of_elements = TRUE,
dimension_1_column_rotated = NULL,
dimension_2_column_rotated = NULL,
action = "add"
)# S4 method for spec_tbl_df
rotate_dimensions(
.data,
dimension_1_column,
dimension_2_column,
rotation_degrees,
.element,
of_elements = TRUE,
dimension_1_column_rotated = NULL,
dimension_2_column_rotated = NULL,
action = "add"
)
# S4 method for tbl_df
rotate_dimensions(
.data,
dimension_1_column,
dimension_2_column,
rotation_degrees,
.element,
of_elements = TRUE,
dimension_1_column_rotated = NULL,
dimension_2_column_rotated = NULL,
action = "add"
)
A `tbl` formatted as | <element> | <feature> | <value> | <...> |
A character string. The column of the dimension 1
A character string. The column of the dimension 2
A real number between 0 and 360
The name of the element column (normally elements).
A boolean. In case the input is a nanny object, it indicates Whether the element column will be element or feature column
A character string. The column of the rotated dimension 1 (optional)
A character string. The column of the rotated dimension 2 (optional)
A character string. Whether to join the new information to the input tbl (add), or just get the non-redundant tbl with the new information (get).
A tbl object with additional columns for the reduced dimensions. additional columns for the rotated dimensions. The rotated dimensions will be added to the original data set as `<NAME OF DIMENSION> rotated <ANGLE>` by default, or as specified in the input arguments.
A tbl object with additional columns for the reduced dimensions. additional columns for the rotated dimensions. The rotated dimensions will be added to the original data set as `<NAME OF DIMENSION> rotated <ANGLE>` by default, or as specified in the input arguments.
A tbl object with additional columns for the reduced dimensions. additional columns for the rotated dimensions. The rotated dimensions will be added to the original data set as `<NAME OF DIMENSION> rotated <ANGLE>` by default, or as specified in the input arguments.
maturing
This function to rotate two dimensions such as the reduced dimensions.
# NOT RUN {
mtcars_tidy_MDS = reduce_dimensions(mtcars_tidy, car_model, feature, value, method="MDS")
rotate_dimensions(mtcars_tidy_MDS, `Dim1`, `Dim2`, .element = car_model, rotation_degrees = 45)
# }
Run the code above in your browser using DataLab