View source: R/get_templates.R
get_panel_template | R Documentation |
Create an html panel for nodes from different items (for galleries).
get_panel_template(data, title=NULL, description=NULL, img=NULL,
text=NULL, color="auto", cex=1, mode = 1)
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. |
a character vector of html formatted panel.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.