line.plot: Line plots

View source: R/plots.R

line.plotR Documentation

Line plots

Description

Produces a plot with several lines

Usage

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

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/eliter documentation built on March 2, 2024, 8:05 p.m.