my.png: Quick way to increase resolution for pngs

Description Usage Arguments See Also Examples

View source: R/my.png.R

Description

Function to increase resolution of pngs being created. Helpful for inserting higher-resolution graphs into a LaTeX document

Usage

1
my.png(filename, width = 6, height = 6, unit = "in", res = 300)

Arguments

filename

Name of file to be created. Should include the ".png" extension

width

Width of image file, in units specified by "unit." Defaults to 6 inches.

height

Height of image file, in units specified by "unit." Defaults to is 6 inches.

unit

Unit of image dimensions. Defaults to inches.

res

Resolution of image. Defaults to 300 dpi.

See Also

png

Examples

1
2
3
4
## This will save a high-resolution graph in your current working directory.
my.png("ExampleGraph.png")
plot(1:5,1:5, type="b", main="Example graph")
dev.off()

lcomm/ltools documentation built on May 20, 2019, 11:28 p.m.