make_productions_page: Generate HTML page with productions list and summary chart

Description Usage Arguments Examples

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

1
2
3
4
5
6
7
make_productions_page(lattes.list, chart.type = c("ggplot2", "plotly",
  "rCharts"), chart.width = 960, chart.height = 480,
  h1.title = "My Laboratory<br/>My Department<br/>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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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:
if(rmarkdown::pandoc_available()) {
  make_productions_page(lattes.list,
                        chart.type     = "ggplot2",
                        h1.title       = "ORCS Lab",
                        h2.title       = "UFMG, Brazil",
                        language       = "EN")
}

fcampelo/ChocoLattes documentation built on May 16, 2019, 12:03 p.m.