Learn R Programming

netCoin (version 2.1.0)

caring_create_graphs: Produce interactive multi graphs.

Description

caring_create_graphs produce an interactive multi graph from caring arguments.

Usage

caring_create_graphs(data,arguments)

Value

This function returns a mGraph object. The function creates a folder in your computer with an HTML document named index.html which contains the graph. This file can be directly opened with your browser.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca.

Arguments

data

A data frame.

arguments

a list with the caring exported arguments.

Examples

Run this code
data <- data.frame(Gender=c(rep("Man",3),rep("Woman",3)),
                    Opinion=c("Yes","Yes","No","No","No","Yes"))
arguments <- list(
  variables = c("Gender", "Opinion"),
  dichotomies = "Opinion",
  valueDicho = "Yes",
  plot = c("surCoin","network")
)
graph <- caring_create_graphs(data,arguments)
if (FALSE) {
plot(graph)
}

Run the code above in your browser using DataLab