rd3_addImage: Adds an image to a 'rD3plot' object.

View source: R/multigraph.R

rd3_addImageR Documentation

Adds an image to a 'rD3plot' object.

Description

rd3_addImage adds an image to a 'rD3plot' object.

Usage

rd3_addImage(x, img)

Arguments

x

A 'rD3plot' object.

img

character vector indicating the image path.

Value

A 'rD3plot' object.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca.

Examples

data(finches)
data(galapagos)
bar <- barplot_rd3(finches, galapagos, select="Certhidea olivacea")
img <- system.file("extdata", "p.Crassirostris.png",
        package="rD3plot")
bar <- rd3_addImage(bar,img)
multi <- rd3_multigraph(barplot=bar)
## Not run: 
rd3_multiPages(multi,"Graph image example",show=TRUE)

## End(Not run)

rD3plot documentation built on March 31, 2023, 7:15 p.m.