ena.plot: Generate a plot of an ENAset

Description Usage Arguments Details Value See Also Examples

View source: R/ena.plot.R

Description

Generates an a plot from a given ENA set object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ena.plot(
  enaset,
  title = "ENA Plot",
  dimension.labels = c("", ""),
  font.size = 10,
  font.color = "#000000",
  font.family = c("Arial", "Courier New", "Times New Roman"),
  scale.to = "network",
  ...
)

Arguments

enaset

The ENAset that will be used to generate a plot

title

A character used for the title of the plot, default: ENA Plot

dimension.labels

A character vector containing labels for the axes, default: c(X, Y)

font.size

An integer determining the font size for graph labels, default: 10

font.color

A character determining the color of label font, default: black

font.family

A character determining the font type, choices: Arial, Courier New, Times New Roman, default: Arial

scale.to

"network" (default), "points", or a list with x and y ranges. Network and points both scale to the c(-max, max) of the corresponding data.frame

...

additional parameters addressed in inner function

Details

This function defines the axes and other features of a plot for displaying an ENAset; generates an ENAplot object that can used to plot points, network graphs, and other information from an ENAset

Value

ENAplot used for plotting an ENAset

See Also

ena.make.set, ena.plot.points

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
data(RS.data)

codeNames = c('Data','Technical.Constraints','Performance.Parameters',
  'Client.and.Consultant.Requests','Design.Reasoning','Collaboration');

accum = ena.accumulate.data(
  units = RS.data[,c("UserName","Condition")],
  conversation = RS.data[,c("Condition","GroupName")],
  metadata = RS.data[,c("CONFIDENCE.Change","CONFIDENCE.Pre","CONFIDENCE.Post")],
  codes = RS.data[,codeNames],
  window.size.back = 4
)

set = ena.make.set(
  enadata = accum
)

plot = ena.plot(set)

group1.points = set$points.rotated[set$enadata$units$Condition == "FirstGame",]
plot = ena.plot.points(plot, points = group1.points);
print(plot);

rENA documentation built on April 23, 2021, 5:06 p.m.