writeData {discourseGT}R Documentation

Exports graphs and data objects from the package to disk

Description

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

Usage

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


attributeData <- attributeData
df <- sampleData1

prepNet <- tabulate_edges(df, silentNodes = 0)
baseNet <- prepareGraphs(prepNet, project_title = "Sample Data 1", weightedGraph = TRUE)
NetPlots2 <- plot2Att(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())


[Package discourseGT version 1.2.0 Index]