Learn R Programming

ChocoLattes (version 0.1.0)

make_productions_page: Generate HTML page with productions list and summary chart

Description

This function generates an HTML page with productions list and summary chart. Use chart.type = "plotly" for an interactive plot, and "ggplot2" for a static one. Option "rCharts" is currently disabled, until the rCharts package (https://github.com/ramnathv/rCharts) becomes available on CRAN.

Usage

make_productions_page(lattes.list, chart.type = c("ggplot2", "plotly",
  "rCharts"), chart.width = 960, chart.height = 480,
  h1.title = "My Laboratory
My Department
My University", h2.title = "Academic Productions", language = c("EN", "PT"), which.fields = c("journal.accepted", "journal.published", "conference.international", "conference.national", "book.chapters", "books", "phd.theses", "msc.theses"))

Arguments

lattes.list
a Lattes list object created using lattes_to_list()
chart.type
package to use for generating the summary chart. "plotly" and "rCharts" output interactive charts, "ggplot2" outputs a static one.
chart.width
plot width (for "plotly" and "rCharts")
chart.height
plot height (for "plotly")
h1.title
H1 title for the page
h2.title
H2 subtitle for the page
language
Language to use in section headers
which.fields
Character vector indicating which fields to include in the productions page.

Examples

Run this code

# Load example data and convert it to a lattes list
CV.dir <- system.file("extdata", package="ChocoLattes")

# Define the aliases of authors "Felipe Campelo" and "Lucas S. Batista":
# (all aliases will be converted to the first name provided for each author)
my.aliases <- list(c("Felipe Campelo",
                     "Felipe Campelo Franca Pinto",
                     "Felipe Campelo F. Pinto",
                     "F.C.F. Pinto"),
                   c("Lucas S. Batista",
                     "Lucas Batista",
                     "Lucas de Souza Batista",
                     "Lucas Souza Batista"))

lattes.list <- lattes_to_list(CV.dir         = CV.dir,
                              author.aliases = my.aliases)


# Build productions page:
make_productions_page(lattes.list,
                      chart.type     = "ggplot2",
                      h1.title       = "ORCS Lab",
                      h2.title       = "UFMG, Brazil",
                      language       = "EN")

Run the code above in your browser using DataLab