R console tab: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
The R console tab enables to send network data from visone to R (using the igraph package) and vice versa. | '''The R console tab has been removed from visone after version 2.6.3. In visone version 2.6.4, or newer, the [[Console|R console]] can be opened by clicking on the [[File:console.png|link=console]] icon in the [[GUI#toolbar|toolbar]].''' | ||
Refer to [[option_dialog#R_-_connection|visone's option dialog]] to get more information on how to set up the visone R connection. | |||
'''Important note: Due to recent changes in R and/or Rserve the connection will not be usable with the current R versions (> 2.13). This problem is limited to Windows and Macintosh. So please ensure that your R version is not later than 2.13. For more info see [[option_dialog#R_-_connection|the R connection setup]]. ''' | |||
The R console tab enables to send network data from visone to R (using the igraph package) and vice versa. Refer to [[option_dialog#R_-_connection|visone's option dialog]] to get more information on how to set up the visone R connection. The visone R interface is illustrated in the [[R_console_(tutorial)|tutorial on ''using visone's R console'']]. | |||
== tab == | == tab == | ||
* '''r name''': defines the name of the igraph network variable in R that the visone network is assigned to (by default this is the name that was assigned to the network in visone...) | * '''r name''': defines the name of the igraph network variable in R that the visone network is assigned to (by default this is the name that was assigned to the network in visone...) | ||
* '''send active net''': '''send''' the network from the active visone tab to R, creating an igraph network variable with the | * '''send active net''': '''send''' the network from the active visone tab to R, creating an igraph network variable with the specified r name (this will open the console, if it has not been shown yet) | ||
* '''show r | * '''show r variables''': '''refresh''' the overview of network objects that are available in R (shown below the refresh button) | ||
* '''load selected net''': '''load''' the network object that is selected in the overview from R to a new visone tab (the name of the network will be the name of the R object; the asterisk reminds you, that it has not been saved yet); alternatively you can double-click on the according network object in the overview | * '''load selected net''': '''load''' the network object that is selected in the overview from R to a new visone tab (the name of the network will be the name of the R object; the asterisk reminds you, that it has not been saved yet); alternatively you can double-click on the according network object in the overview | ||
Line 14: | Line 17: | ||
== console == | == console == | ||
There are three tabs displaying different | There are three tabs displaying different messages regarding the R connection: | ||
* '''visone''': all messages that originate from visone | * '''visone''': all messages that originate from visone | ||
* '''user''': all messages that originate from user input in the console | * '''user''': all messages that originate from user input in the console | ||
* '''all''': both, user and visone messages | * '''all''': both, user and visone messages | ||
At the bottom of the console you find | At the bottom of the console you find the | ||
* '''input''' field | * '''input''' field that can be used to invoke any R commands | ||
* '''close''' button | * '''close''' button that closes the R console window (but not the connection to R) | ||
'''please note''' that whenever you want to install new libraries or load installed libraries and do not use the default library location, | |||
you have to give it as a parameter, i.e., | |||
library(sna, lib.loc="C:/R-libs") | |||
or | |||
install.packages("sna", dependencies=T, lib="C:/R-libs") | |||
where <code>lib.loc</code> (respectively <code>lib</code>) has to be set to the library location configured in [[option_dialog#R_-_connection|the R connection setup]]. |
Latest revision as of 12:02, 19 July 2012
The R console tab has been removed from visone after version 2.6.3. In visone version 2.6.4, or newer, the R console can be opened by clicking on the icon in the toolbar.
Important note: Due to recent changes in R and/or Rserve the connection will not be usable with the current R versions (> 2.13). This problem is limited to Windows and Macintosh. So please ensure that your R version is not later than 2.13. For more info see the R connection setup.
The R console tab enables to send network data from visone to R (using the igraph package) and vice versa. Refer to visone's option dialog to get more information on how to set up the visone R connection. The visone R interface is illustrated in the tutorial on using visone's R console.
tab
- r name: defines the name of the igraph network variable in R that the visone network is assigned to (by default this is the name that was assigned to the network in visone...)
- send active net: send the network from the active visone tab to R, creating an igraph network variable with the specified r name (this will open the console, if it has not been shown yet)
- show r variables: refresh the overview of network objects that are available in R (shown below the refresh button)
- load selected net: load the network object that is selected in the overview from R to a new visone tab (the name of the network will be the name of the R object; the asterisk reminds you, that it has not been saved yet); alternatively you can double-click on the according network object in the overview
- show console: this button is used to (re)show the console without sending a network
console
There are three tabs displaying different messages regarding the R connection:
- visone: all messages that originate from visone
- user: all messages that originate from user input in the console
- all: both, user and visone messages
At the bottom of the console you find the
- input field that can be used to invoke any R commands
- close button that closes the R console window (but not the connection to R)
please note that whenever you want to install new libraries or load installed libraries and do not use the default library location, you have to give it as a parameter, i.e.,
library(sna, lib.loc="C:/R-libs")
or
install.packages("sna", dependencies=T, lib="C:/R-libs")
where lib.loc
(respectively lib
) has to be set to the library location configured in the R connection setup.