plot.contextHits: S3 plot for contextHits class

View source: R/search_results.r

plot.contextHitsR Documentation

S3 plot for contextHits class

Description

S3 plot for contextHits class

Usage

## S3 method for class 'contextHits'
plot(x, min_weight = 0, backbone_alpha = NA, ...)

Arguments

x

a contextHits object, as returned by search_contexts

min_weight

Optionally, the minimum weight for an edge in the network

backbone_alpha

Optionally, the alpha threshold for backbone extraction (similar to a p-value, and lower is more strict)

...

not used

Examples

## Not run: 
tc = create_tcorpus(sotu_texts, doc_column='id')
hits = search_contexts(tc, c('War# war* OR army OR bomb*','Terrorism# terroris*',
                              'Economy# econom* OR bank*','Education# educat* OR school*'))

plot(hits)

## End(Not run)

corpustools documentation built on May 31, 2023, 8:45 p.m.