plot.chtrs: Plot cheatrs / histogram of similarity scores

Description Usage Arguments Value Author(s) Examples

View source: R/methods.R

Description

Requires ggraph and ggplot2 to work.

Usage

1
2
3
4
5
## S3 method for class 'chtrs'
plot(x, weight_range = c(0.4, 1), remove_lonely = TRUE, digits = 0, ...)

## S3 method for class '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.

...

passed to ggraph::ggraph() or ggplot2::geom_histogram.

Value

A ggplot2 plot.

Author(s)

Mattan S. Ben-Shachar

Examples

1
2
3
4
5
6
7
if (interactive()) {
  files <- choose.files()
  res <- catch_em(files)

  plot(res)
  hist(res)
}

cheatR documentation built on July 1, 2020, 9:16 p.m.