ezImageFileLink: Gets an image link as html

View source: R/reports.R

ezImageFileLinkR Documentation

Description

Gets an image link as html. Also plots and creates the image.

Usage

ezImageFileLink(
  plotCmd,
  file = NULL,
  name = "imagePlot",
  plotType = "plot",
  mouseOverText = "my mouse over",
  addPdfLink = TRUE,
  width = 480,
  height = 480,
  ppi = 72,
  envir = parent.frame()
)

Arguments

plotCmd

an expression of plot commands.

file

a character specifying the name of the image with a .png suffix.

name

a character specifying the name of the image together with plotType, if file is null.

plotType

a character specifying the name of the image together with name, if file is null.

mouseOverText

a character specifying the text being displayed when mousing over the image.

addPdfLink

a logical indicating whether to add a link on the image to a pdf version of itself.

width

an integer specifying the width of each plot to create an image from.

height

an integer specifying the height of each plot to create an image from.

ppi

an integer specifying points per inch.

envir

the environment to evaluate plotCmd in.

Value

Returns a character specifying a link to an image in html.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

x = 1:10
plotCmd = expression({
  plot(x)
  text(2,1, "my Text")
})
ezImageFileLink(plotCmd)

uzh/ezRun documentation built on May 4, 2024, 3:23 p.m.