Skip to content

Commit 97e3872

Browse files
committed
vignette stuff
1 parent e0c8037 commit 97e3872

12 files changed

Lines changed: 105 additions & 21 deletions

File tree

AssumptionPlotter/DESCRIPTION

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ LazyData: true
1919
RoxygenNote: 7.3.2
2020
Config/testthat/edition: 3
2121
Imports:
22+
bslib,
23+
datasets,
24+
DT,
2225
ggplot2,
2326
knitr,
2427
quarto,
28+
readr,
29+
sass,
30+
shiny,
2531
testthat,
2632
usethis
2733
VignetteBuilder: quarto

AssumptionPlotter/NAMESPACE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
export(data_log_plot)
44
export(run_plotter)
55
export(simulate_logistic)
6+
import(DT)
7+
import(bslib)
8+
import(datasets)
9+
import(dplyr)
610
import(ggplot2)
11+
import(knitr)
12+
import(quarto)
13+
import(readr)
14+
import(sass)
715
import(shiny)
816
import(testthat)
917
import(usethis)

AssumptionPlotter/R/edit_datasets.R

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
edit_df <- function(df, id_col, day_col, exp_day, beep_col, exp_beep, variables){
2020

21+
time <- numeric()
22+
2123
missing <- data.frame(
2224
id = c(),
2325
beeps = numeric(),
@@ -48,12 +50,14 @@ edit_df <- function(df, id_col, day_col, exp_day, beep_col, exp_beep, variables)
4850

4951
missing <- rbind(missing, add)
5052

53+
time <- c(time,1:nrow(sub_df))
54+
5155
}
5256

5357

5458
new_df <- data.frame(
5559
ID = df[,id_col],
56-
time = 1:nrow(df),
60+
time = time,
5761
day = df[,day_col],
5862
beep = df[,beep_col]
5963
)
@@ -64,15 +68,9 @@ edit_df <- function(df, id_col, day_col, exp_day, beep_col, exp_beep, variables)
6468
new_df[new_var[i]] <- df[[variables[i]]]
6569
}
6670

67-
return(missing)
68-
#return(new_df)
69-
#print(missing)
7071

71-
}
72+
dfs <- list(new_df, missing)
73+
return(dfs)
7274

73-
buu <- data.frame(x=1:10, y=letters[1:10])
74-
buu[h[1]] <- 36:45
75-
76-
buu[[h[1]]]
75+
}
7776

78-
mode(lu[,2:3])
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#' @import ggplot2
22
#' @import usethis
33
#' @import testthat
4+
#' @import knitr
5+
#' @import quarto
6+
#' @import shiny
7+
#' @import datasets
8+
#' @import bslib
9+
#' @import DT
10+
#' @import sass
11+
#' @import readr
412
NULL
-19.2 KB
Binary file not shown.
1.76 KB
Binary file not shown.

AssumptionPlotter/inst/app/app.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# https://shiny.posit.co/
88
#
99

10-
library(shiny)
11-
library(AssumptionPlotter)
12-
library(datasets)
13-
library(bslib)
14-
library(DT)
15-
library(sass)
10+
# library(shiny)
11+
# library(AssumptionPlotter)
12+
# library(datasets)
13+
# library(bslib)
14+
# library(DT)
15+
# library(sass)
1616

1717
# Define UI for application that draws a histogram
1818
ui <- page_navbar(
@@ -26,7 +26,7 @@ ui <- page_navbar(
2626
tags$img(src = "logo.png", height = "30px"),
2727
tags$b("AssumptionPlotter")
2828
),
29-
bg = "red",
29+
bg = "#b22222",
3030
inverse = TRUE,
3131
fillable = TRUE,
3232
theme = bs_theme(
123 KB
Loading

AssumptionPlotter/man/edit_df.Rd

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AssumptionPlotter/vignettes/AssumptionPlotter.qmd

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
---
2-
title: "AssumptionPlotter"
2+
title: |
3+
<img src="figures/logo.png" height="30px" style="vertical-align:middle; margin-right:8px;">
4+
<span>AssumptionPlotter</span>
35
author: "Emma Akrong"
4-
date: "May 24, 2026"
6+
date: "May 29, 2026"
7+
format:
8+
html:
9+
theme: simplex
10+
css: vignette-style.css
11+
toc: true
12+
toc-depth: 3
13+
toc-location: left
514
vignette: >
615
%\VignetteIndexEntry{AssumptionPlotter}
716
%\VignetteEngine{quarto::html}
@@ -23,7 +32,7 @@ While it tests whether the data matches meets the statistical assumptions of the
2332
For example, in the case of a study with intensive longitudinal data, the user might expect to see change. This package aims to show how e.g., a VAR model would not be able to reflect this expectation.
2433

2534

26-
# Running AssumptionPlotter
35+
## Running AssumptionPlotter
2736

2837
The first step after installing the package is to run the function `run.plotter()`.
2938

@@ -32,7 +41,7 @@ run.plotter()
3241
```
3342

3443

35-
# TO ADD
44+
## TO ADD
3645

3746
This will all be added before Friday.
3847

0 commit comments

Comments
 (0)