Display the legend for colors and annotations in the active rgl window. In case no rgl window is opened, a new window displaying the x3p file (using default sizes and zoom) opens.
Examples
x3p <- x3p_read(system.file("sample-land.x3p", package="x3ptools"))
if (FALSE) { # \dontrun{
# run when rgl can open window on the device
x3p_image(x3p)
x3p_add_legend(x3p) # add legend
} # }