barplot_rd3 {rD3plot}R Documentation

Networked barplot.

Description

barplot_rd3 produces an interactive barplot of coincidences between events.

Usage

barplot_rd3(events, links, name = NULL, select = NULL,
        source = NULL, target = NULL,
        label = NULL, text = NULL, color = NULL,
        incidences = NULL, coincidences = NULL,
        expected = NULL, confidence = NULL, level = .95, significance = NULL,
        sort = NULL, decreasing = FALSE,
        scalebar = FALSE, defaultColor = "#1f77b4", note = NULL, cex = 1,
        language = c("en","es","ca"), dir = NULL)

Arguments

events

a data frame with at least two columns of event names (by default 1st column) and incidences (2nd column). Columns for each variable can be specified at name and incidences parameters.

links

a data frame with at least three columns indicating source event, target event and number of coincidences (in that order). Columns assigned to each variable can be specified at source, target and concidences parameters.

name

column name with event names in the events data frame.

source

column name with source names in the links data frame.

target

column name with target names in the links data frame.

select

event name to start the visualization.

label

column name with labels in the events data frame.

text

column name with html text in the events data frame.

color

column name with color variable in the events data frame.

coincidences

column nane with coincidences in the links data frame.

incidences

column name with incidences in the events data frame.

expected

column name with expected coincidences in the links data frame.

confidence

column name with confidence interval in the links data frame.

level

confidence level

significance

column name with significance in the links data frame.

sort

column name in the events data frame to order the bars in the graph.

decreasing

order the events in a decreasing order.

scalebar

bars are represented filling all the screen height.

defaultColor

a string giving a valid html color.

note

the lower title of the graph.

cex

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

language

a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan).

dir

a character string representing the directory where the web files will be saved.

Value

Object of class barplot_rd3.

Author(s)

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

Examples

data(finches)
data(galapagos)
barplot <- barplot_rd3(finches, galapagos, select="Certhidea olivacea",
            note="Data source: Sanderson (2000)")
## Not run: 
plot(barplot)

## End(Not run)

[Package rD3plot version 1.0.68 Index]