Description Usage Arguments Details Value Author(s) Examples
This function can read an image file from the hard disk and plot it in a newly-opened graphical device.
1 2 |
img |
A character string indicating the path of the image file. Supported formats include png, tiff, jpg and bmp. |
dpi |
An integer specifying the dpi of the image file. A minimum of 300 dpi is required when running automatic detection. |
RGB |
A numeric vector of length 3 giving the weight of RGB color channels. |
rotate |
An integer specifying how many degrees to rotate (clockwise). It requires one of the following values: |
magick |
A logical value. If |
Proper image preparation has a great influence on the measurement of ring widths. A tree-ring image should not contain irrelevant or redundant features, such as wooden mounts where cores are glued. The larger the file size of an image, the slower the image processing operation will be.
Pith side of a tree-ring sample should be placed on the right side of the graphical window. Use the argument rotate
to change its position.
It is highly recommended to use the default value magick = TRUE
, because the package magick
can significantly reduce the memory usage.
A magick image object containing the image data.
Jingning Shi
1 2 3 4 | img.path <- system.file("001.png", package = "MtreeRing")
## Read and plot the image:
t1 <- imgInput(img = img.path, dpi = 1200)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.