flip_coords_df | R Documentation |
Flip coordinate variables in a data.frame.
flip_coords_df(
df,
axis,
ranges,
xvars = c("x_orig", "x", "xend", "col", "imagecol"),
yvars = c("y_orig", "y", "yend", "row", "imagerow"),
verbose = FALSE,
error = FALSE,
...
)
df |
Data.frame with numeric coordinate variables. |
axis |
Character value. Denotes the axis around which the coordinates are flipped. Either x or y to adress the coordinate variables specifically or h (horizontal, flips y-coords) or v (vertical - flips x-coords). |
ranges |
A named list as returned by |
xvars , yvars |
Character vector. Names of the data.frame variables that
contain axis coordinates. If some of the names are not present in the
input data.frame: Depending on the input of |
verbose |
Logical. If (Warning messages will always be printed.) |
error |
Logical. If |
... |
Used to absorb deprecated arguments or functions. |
Adjusted data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.