Learn R Programming

netCoin (version 2.1.49)

addTutorial: Adds a tutorial for the gallery.

Description

addTutorial adds a tutorial for a gallery.

Usage

addTutorial(x, image = NULL, description = NULL, help = FALSE)

Value

Object of class gallery_rd3.

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.

help

Should you press the help button to show the tutorial? ('FALSE' by default)

Author

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

Examples

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

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

if (FALSE) {
plot(g)
}

Run the code above in your browser using DataLab