line.plot: Line plots

Description Usage Arguments Value Examples

Description

Produces a plot with several lines

Usage

1
2
line.plot(x, sort = TRUE, var.names = colnames(x), label.x = NULL,
  label.y = NULL)

Arguments

x

is a vector or a dataframe of vectors

sort

if TRUE values are sorted from highest to lowest

var.names

a character vector with the variable names

label.x

the label for the x axis

label.y

the label for the y axis

Value

a ggplot2 lineplot

Examples

1
2
3
4
5
6
data(den)
health.affil  <- has.tags(den, c("Health"))
den.health    <- den[den$AFFILIATION %in% health.affil,]
net.health    <- elite.network(den.health)
measures      <- data.frame(degree = degree(net.health, normalized = TRUE), betweenness = betweenness(net.health, normalized = TRUE))
line.plot(measures)

antongrau/soc.elite documentation built on May 10, 2019, 12:25 p.m.