美文网首页
R IN ACTION SELF-TUTORIAL-75 介绍一

R IN ACTION SELF-TUTORIAL-75 介绍一

作者: RashidinAbdu | 来源:发表于2021-12-23 20:19 被阅读0次

    image.png

    对包的介绍:

    Create a figure depicting reproducibility/replicability of a set of scientific experiments

    • Description
      sci_figure creates a graphical representation of changes in a a set of subsequent studies or reproduction attempts as compared to an original study.

    • Usage
      sci_figure(experiments, custom_icons = NULL,
      stage_names = c("Population", "Question", "Hypothesis", "Exp. Design",
      "Experimenter", "Data", "Analysis Plan", "Analyst", "Code", "Estimate",
      "Claim"), hide_stages = NULL, diff = FALSE, showlegend = TRUE,
      cols = c("#D20000", "#007888", "#CDCDCD", "black"),
      leg_text = c("Incorrect", "Different", "Unobserved", "Original"))
      Arguments
      experiments

    • A data frame, which can be initialized with init_experiments(), whose rownames are the predefined stages of a scientifc experiments, columnnames are the names of each experiment, and cell values represent the state of each stage in each experiment (states described below).

    • custom_icons
      (optional) A list of bitmap matrices of custom icon images of length matching experiments input. Bitmap icons must be 75 x 75 pixels. See vignette for detailed instructions and specifications. Default NULL, indicating that default icons will be used.

    • stage_names
      Character vector of names of stages. Default names match Patil et. al. If set to NULL, all names will be suppressed. Use hide_stages (below) to suppress specific stage names.

    • hide_stages
      (optional) A character vector with the names of the stages in the scientific experiment, i.e. rownames of experiments, which the user wishes to suppress from the figure output. The default value of hide_stages is NULL, indicating that all stages will be displayed.

    • diff
      (optional) A Boolean flag to indicate whether the rendering of the figure should emphasize the differences between the experiments ("difference mode"). The difference mode uses a set of four symbols that are semantically close to the scenarios that they are encoding. The default value is FALSE.

    • showlegend
      Do you want the legend to be shown?

    • cols
      colors to use for the specific scenarios when diff = T or custom_icons used.

    • leg_text
      text for legend keys corresponding to the specific colors.

     exps <- init_experiments()
     exps
     sci_figure(experiments = exps)
    
    image.png
     sci_figure(exps, showlegend = FALSE)
    
    image.png

    相关文章

      网友评论

          本文标题:R IN ACTION SELF-TUTORIAL-75 介绍一

          本文链接:https://www.haomeiwen.com/subject/ojkkqrtx.html