Learn R Programming

modello (version 0.1.1)

graph.open: Open Graph

Description

Open a graph

Usage

graph.open(g = NULL)

Arguments

g

a reference object of class 'graph'

Value

Returns a reference object of class 'graph' linked to the open graph

Details

If g is NULL a new graph is open. Otrewise the graph liked to g is open.

Examples

Run this code
# NOT RUN {
modello.init(10, 10, 10, 10)
x1 = number(1)
x2 = number(3)
x3 = number(2)
g = graph.open()
y = log((x1 + x3)**x2)
graph.close()
print(y$v)
x1$v = 2
g$op()
print(y$v)
y$dv = 1
g$bw()
print(x1$dv)
print(x2$dv)
print(x3$dv)
modello.close()
# }

Run the code above in your browser using DataLab