Learn R Programming

cheatR (version 1.2.1-1)

plot.chtrs: Plot cheatrs / histogram of similarity scores

Description

Requires ggraph and ggplot2 to work.

Usage

# S3 method for chtrs
plot(x, weight_range = c(0.4, 1), remove_lonely = TRUE, digits = 0, ...)

# S3 method for chtrs hist(x, ...)

Arguments

x

output of catch_em().

weight_range

range of edge values to plot

remove_lonely

should lonely nodes (not connected to any edges) be removed from the graph?

digits

Number of digits to round the percentage to.

Value

A ggplot2 plot.

Examples

Run this code
# NOT RUN {
if (interactive()) {
  files <- choose.files()
  res <- catch_em(files)

  plot(res)
  hist(res)
}

# }

Run the code above in your browser using DataLab