pie_rd3 {rD3plot}R Documentation

Networked barplot.

Description

pie_rd3 produces an interactive barplot of coincidences between events.

Usage

pie_rd3(v, w = NULL, labels = NULL, colors = NULL, nodes = NULL, links = NULL,
  name = NULL, source = NULL, target = NULL, lcolor = NULL,
  ablineX = NULL, ablineY = NULL, hideUpper = FALSE, main = NULL, note = NULL,
  showLegend = TRUE, help = NULL, helpOn = FALSE,
  cex = 1, language = c("en", "es", "ca"), dir = NULL)

Arguments

v

a vector or array of non-negative numerical quantities. The values are displayed as the areas of pie slices.

w

an array of non-negative numerical quantities. The first value is displayed as a pie slice bordered red.

labels

character strings giving names for the slices.

colors

a vector of colors to be used in filling the slices.

nodes

a data frame with information for rows and columns.

links

a data frame with information for each pie.

name

name of the column with rownames and colnames in the nodes data frame.

source

name of the column with rownames in the links data frame.

target

name of the column with colnames in the links data frame.

lcolor

name of the column with color variable in the links data frame.

ablineX

adds one or more straight vertical lines between pies.

ablineY

adds one or more straight horizontal lines between pies.

hideUpper

should hide the upper triangle?

main

upper title of the graph.

note

lower title of the graph.

showLegend

a logical value true if the legend is to be shown.

help

a character string indicating a help text of the graph.

helpOn

Should the help be shown at the beginning?

cex

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

language

a character vector (es=spanish; en=english; ca=catalan).

dir

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

Value

Object of class pie_rd3.

Author(s)

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

Examples

pie <- pie_rd3(1:4, labels = c("XY","X","","Y"),
  colors = c("black","cadetblue2", "white","cadetblue3"))
## Not run: 
plot(pie)

## End(Not run)

[Package rD3plot version 1.0.68 Index]