R R-View

This Node Is Deprecated — This node is kept for backwards-compatibility, but the usage in new workflows is no longer recommended. The documentation below might contain more information.

Enables the usage of R views using the local R installation. The View displays the R View generated by the R command entered within the dialog. The data is available from the in-port R workspace which is imported into R (saved in the variable named R) and the entered commands are executed. The resulting png file is passed into KNIME and is displayed in the node's view.
Be aware that if you use R commands like png() or bmp() etc., you will open a new graphic device to draw the plot to. This means that the graphic device used by this node to display the plot is not used anymore and the view will show a empty image. It is heavily recommended not to used such R commands.

More details about R:
http://www.r-project.org/
Short-refcard.pdf

Options

R Command

R Snippet
Examples of R code for the creation of plots can be generated by selecting a certain item (plot) of the drop down box. Furthermore, the R code within the command editor can be modified to create user specific views.
Column List
The list contains the column that are available in the input table. Double click any of the column names to insert the respective field in the expression editor. It will replace your current selection or simply insert at the current caret position.
Flow Variable List
The list contains the flow variables that are currently available at the node input. Double clicking any of the entries will insert the respective identifier at the current cursor position (replacing the selection, if any).
View type
Choose a R view from the list of predefined view command and adapt the parameter list in the R command panel. Generic X-Y Plotting, Box Plots, Bar Plots, Cleveland Dot Plots, Association Plots, Conditional Density Plots, Display Contours, Conditioning Plots, Draw Function Plots, Fourfold Plots, Histograms, Plot Columns of Matrices, Mosaic Plots, Scatterplot Matrices, Perspective Plots, Pie Charts, Polygon Drawing, Spine Plots and Spinograms, Star (Spider/Radar) Plots and Segment Diagrams, Sunflower Scatter Plot, 1-D Scatter Plots.

R Binary

R binary path
Path to the local R executable. Note that it is possible to specify the path to the local R executable also in the R section of the KNIME preferences.
Arguments for R binary
Add additional arguments run together with the R binary. The '--vanilla' mode ensures a clean workspace and may cause problems when removed.
Override default
If checked, the specified file is used as R binary. If not checked, the file specified in the KNIME's R preferences is used.

PNG Settings

Image height
The height of the image to create and display in pixels
Image width
The width of the image to create and display in pixels
Resolution (dpi)
The nominal resolution in dpi which will be recorded in the bitmap file, if a positive integer. Also used for units other than the default. If not specified, taken as 72 dpi to set the size of text and line widths.
Point size
The point size of plotted text. One point is approximately one pixel.
Background color
The background color encoded in RGB Hex.

Input Ports

Icon
R Input

Output Ports

Icon
View Image

Popular Predecessors

Popular Successors

  • No recommendations found

Views

R View
View displays the png generated by the R command entered within the dialog.
R Std Output
The text sent to standard out during the execution of R executable as well as the text of the .Rout file generated by R.
R Error Output
The text sent to standard error during the execution of R executable as well as the text of the .Rout file generated by R. (If it appears in gray, it's the output of a previously failing run which is preserved for your trouble shooting.)

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.