if(run_documentation()){
#Original orientation
plot_image(dragon)
}
if(run_documentation()){
#Flip the dragon image horizontally
dragon |>
render_reorient(flipx = TRUE) |>
plot_image()
}
if(run_documentation()){
#Flip the dragon image vertically
dragon |>
render_reorient(flipy = TRUE) |>
plot_image()
}
if(run_documentation()){
#Transpose the dragon image
dragon |>
render_reorient(transpose = TRUE) |>
plot_image()
}
Run the code above in your browser using DataLab