if (FALSE) { # interactive() || identical(Sys.getenv("IN_PKGDOWN"), "true")
#Original orientation
plot_image(dragon)
#Flip the dragon image horizontally
dragon |>
render_reorient(flipx = TRUE) |>
plot_image()
#Flip the dragon image vertically
dragon |>
render_reorient(flipy = TRUE) |>
plot_image()
#Transpose the dragon image
dragon |>
render_reorient(transpose = TRUE) |>
plot_image()
}
Run the code above in your browser using DataLab