I created an image in R from two-dimensional data - x.
graphics::image(ifelse(drop(x)!=0, x, NA))
I would like to add text and line to the image.
I tried text(10, 10, "testing")and segments(5, 10, 20, 25), but neither text nor line were shown.
source
share