JPlotRaster | R Documentation |
Exactly one of width
and height
must be specified.
JPlotRaster(
img,
x,
y,
width = NA,
height = NA,
position = c("centre", "center", "bottomright", "bottom", "bottomleft", "left",
"topleft", "top", "topright", "right"),
offset = c(0, 0),
...
)
img |
Raster image, possibly created by calling
|
x , y |
Location on the plot of the image in user coordinates. |
width |
Width of the image in user coordinates. The height will be calculated from the aspect ratio of the image and the respective scales of the x- and y-axes. |
height |
Height of the image in user coordinates. The width will be calculated from the aspect ratio of the image and the respective scales of the x- and y-axes. |
position |
Specifies the location of |
offset |
Vector with length 2. Amount to offset |
... |
Additional arguments are passed on to |
## Not run:
plot(...)
img <- readJPEG("myjpeg.jpg", native = TRUE)
# Draw image centred on (0, 0)
JPlotRaster(img, x = 0, y = 0, width = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.