R/png2.R

Defines functions png2

Documented in png2

###########################################################################/**
# @RdocFunction png2
#
# @title "A PNG device for Bitmap Files via GhostScript"
#
# \description{
#   @get "title".
# }
#
# @synopsis
#
# \arguments{
#  \item{filename}{The name of the file to be produced.}
#  \item{width, height}{The width and height (in pixels) of the result image.}
#  \item{res}{The resolution of the image.}
#  \item{type}{The output type. See @see "grDevices::dev2bitmap" for details.}
#  \item{...}{Additional arguments passed to \code{bitmap()}.}
# }
#
# \value{
#   Returns nothing.
# }
#
# @author
#
# @keyword device
# @keyword internal
#*/###########################################################################
png2 <- function(filename, width=480, height=480, res=144, type="png256", ...) {
  bitmap(file=filename, type=type, width=width/res, height=height/res, res=res, ...)
}

Try the R.devices package in your browser

Any scripts or data that you put into this service are public.

R.devices documentation built on June 21, 2022, 9:06 a.m.