add_tutorial_rd3: Adds a tutorial for the gallery.

View source: R/gallery.R

add_tutorial_rd3R Documentation

Adds a tutorial for the gallery.

Description

add_tutorial_rd3 adds a tutorial for a gallery.

Usage

add_tutorial_rd3(x, image = NULL, description = NULL)

Arguments

x

object of class gallery_rd3.

image

character vector indicating the image path, header for the tutorial.

description

a character string indicating a desription text to insert in the tutorial.

Value

Object of class gallery_rd3.

Author(s)

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

Examples

data("finches")
finches$species <- system.file("extdata", finches$species,
        package="rD3plot") # copy path to the species field
gallery <- gallery_rd3(finches, image="species", main="Species in Galapagos Islands",
        note="Data source: Sanderson (2000)")

gallery <- add_tutorial_rd3(gallery, 
  description="Here you can see different finches species in Galapagos islands.")

## Not run: 
plot(gallery)

## End(Not run)

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