Standard R

From Displayr
Jump to: navigation, 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 Calculation, and adding controls in the Calculation's Object Inspector under Properties > INPUTS JAVASCRIPT.
  • Choosing options from the menus. This automatically creates a Calculation or Variable. There are two different ways that this works at an underlying level:
    1. Standard R Pages. These are pages on the Q wiki, which match options available from the menus. For example, if you select Anything > Advanced Analysis > Regression > Linear Regression, Displayr:
      • Inserts a Calculation.
      • 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 Calculation's INPUTS JAVASCRIPT box.
      • Extracts the code from the second box and pastes it into the R CODE box.
    2. Using QScript.

See also

The flip Project