Standard R
Jump to navigation
Jump to search
R analyses that are "built-in" to Displayr are referred to as Standard R. These are analyses where the R code has been connected to a graphical user interface (e.g., is available from a menu and options can be accessed from checkboxes, etc.). Standard R thus consists of:
- Pre-written R code. The code has been written in a way that makes it relatively easy to use, so that similar things are done in similar ways and standard terminology is used where practical. See The flip Project for more information.
- A graphical user interface (GUI), so that users can select the inputs for their analyses using menus and controls on a form (as opposed to writing code). See Standard R Pages on the Q wiki).
Ways of creating Standard R analyses
There are a variety of ways to create Standard R analyses:
- Creating an R Output, and adding controls into Properties > INPUTS JAVASCRIPT in the Object Inspector.
- Choosing options from the Ribbon. This automatically creates an R Output or R Variable. There are two different ways that this works at an underlying level:
- Standard R Pages. These are pages on the Q wiki, which match options available from the Ribbon. For example, if you select Insert > Analysis > More > Regression > Linear Regression, Displayr:
- Inserts an R Output.
- Goes to the Regression - Linear Regression page on the Q wiki, extracts the code in the first of the code boxes, and pastes it into the R Output's INPUTS JAVASCRIPT box.
- Extracts the code from the second box and pastes it into the R Code box.
- Using QScript.
- Standard R Pages. These are pages on the Q wiki, which match options available from the Ribbon. For example, if you select Insert > Analysis > More > Regression > Linear Regression, Displayr: