Learn R Programming

rENA (version 0.1.6.1)

ena.plot: Generate a plot of an ENAset

Description

Generates an a plot from a given ENA set object

Usage

ena.plot(enaset, title = "ENA Plot", dimension.labels = c("X", "Y"),
  font.size = 10, font.color = "#000000", font.family = c("Arial",
  "Courier New", "Times New Roman"), scale.to = c("network", "points"),
  ...)

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

Either network or points. Default: "network"

...

additional parameters addressed in inner function

Value

ENAplot used for plotting an ENAset

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

See Also

ena.make.set, ena.plot.points

Examples

Run this code
# NOT RUN {
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);

# }

Run the code above in your browser using DataLab