writeData: Exports graphs and data objects from the package to disk

Description Usage Arguments Value Examples

View source: R/writeData.R

Description

Saves information from graphs and data objects created by package. Plots are saved as .tiff at 300 dpi

Usage

1
writeData(project_name, objectfile, dirpath = NULL)

Arguments

project_name

Name of the project

objectfile

The saved data object data file

dirpath

The working directory that the files will be saved to. Path required for write function to work. Current directory, use "." as the dirpath

Value

Saves the requested object file to disk. Saves graphs or summary information sheets.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
attributeData <- attributeData
df <- sampleData1

prepNet <- tabulate_edges(df, iscsvfile = FALSE, silentNodes = 0)
baseNet <- prepareGraphs(prepNet, project_title = "Sample Data 1", weightedGraph = TRUE)
NetPlots2 <- plotGraphs2(baseNet, attribute1 = attributeData$ethnicity,
attribute2 = attributeData$gender, attribute.node.labels = attributeData$node,
attribute1.label = "Ethnicity", attribute2.label = "Gender")

writeData("Sample Data 1", NetPlots2, dirpath = tempdir())

discourseGT documentation built on Oct. 23, 2020, 8:11 p.m.