Description Usage Arguments Examples
png_dims
- Reports the width and height of a .png
file.
size_ratio
- Gives either the new width or height
given the other and the old width and height.
1 2 3 | png_dims(path)
size_ratio(width.a, height.a, width.b, height.b, path = NULL)
|
path |
Path to the in .png file. |
width.a |
The new width (supply either width.a or height.a). |
height.a |
The new height (supply either width.a or height.a). |
width.b |
The old width (may give path to .png in liue of old width and height). |
height.b |
The old height(may give path to .png in liue of old width and height). |
1 2 3 4 5 6 7 8 | ## Not run:
file <- system.file("extdata/deb_roy.png", package = "embodied")
png_dims(file)
size_ratio(, 10, 3, 5)
size_ratio(10, , 3, 5)
size_ratio(10, , path = file)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.