get_panel_template: Create an html panel for nodes from different items (for...

View source: R/get_templates.R

get_panel_templateR Documentation

Create an html panel for nodes from different items (for galleries).

Description

Create an html panel for nodes from different items (for galleries).

Usage

get_panel_template(data, title=NULL, description=NULL, img=NULL,
                   text=NULL, color="auto", cex=1, mode = 1)

Arguments

data

data frame which contains the data.

title

column name which contains the first title of the vignette.

description

column name which contains the main text of the vignette.

img

column name which contains the names of the image files.

text

column name which contains the main text of the vignette.

color

color of the panel (It also could be a column name which contains colors).

cex

number indicating the amount by which plotting text should be scaled relative to the default.

mode

There are two display modes.

Value

a character vector of html formatted panel.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

## Not run: 
data("sociologists")
sociologists$picture <- system.file("extdata", sociologists$picture,
        package="netCoin")
sociologists$html <- get_panel_template(sociologists, title="name",
  description="birth_country",img="picture", text="school")
plot(gallery(sociologists, info="html"))

## End(Not run)

netCoin documentation built on Oct. 18, 2024, 5:10 p.m.