plot.IMEC: Plots the explanatory relations

View source: R/main.R View source: R/main - work_in_progress.R

plot.IMECR Documentation

Plots the explanatory relations

Description

Plot the explanatory relations between data and phenomena. A window will open where you can drag the nodes in the intended position. Then press enter to plot the network.

Usage

## S3 method for class 'IMEC'
plot(x, nodesize = 10, ...)

Arguments

x

Object of the class IMEC as returned by computeIMEC

nodesize

size of vertices in the plotted network

...

other parameters passed on to S3 method.

Examples

# simple example comparing two hypotheses one of them with more explanatory breadth##
T1 <- c("H1", "H2")
Phenomena <- c("E1", "E2")
Thresholds <- c(2,2)
explanations <- initializeNetwork(Phenomena, T1)
explanations <- explain("H1", "E1", explanations)
explanations <- explain("H1", "E2", explanations)
explanations <- explain("H2", "E2", explanations)
explanations <- contradict("H1", "H2", explanations)
coherence <- computeIMEC(explanations, Thresholds, Phenomena, T1)
summary(coherence)
plot(coherence)

MaxMaier42/IMEC documentation built on Oct. 30, 2022, 2:28 a.m.