Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: displaying intended graph #262

Merged
merged 2 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vignettes/estimate_response.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
different CI levels (for instance, 69\%, 89\% and 99\%).

```{r}
predicted <- estimate_relation(model, ci = c(0.69, .89, 0.99))

Check warning on line 170 in vignettes/estimate_response.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/estimate_response.Rmd,line=170,col=52,[numeric_leading_zero_linter] Include the leading zero for fractional numeric constants.

iris %>%
ggplot(aes(x = Sepal.Length)) +
Expand Down Expand Up @@ -258,7 +258,7 @@
# anim_save("gganimate_figure.gif", gganimate::animate(p, width = 800, height = 500, type = "cairo"))

if (knitr::is_html_output()) {
knitr::include_graphics("https://github.com/easystats/estimate/raw/master/man/figures/gganimate_figure.gif")
knitr::include_graphics("https://github.com/easystats/estimate/raw/main/man/figures/gganimate_figure.gif")
} else {
iris %>%
ggplot(aes(x = Sepal.Length)) +
Expand Down
2 changes: 1 addition & 1 deletion vignettes/modelisation_approach.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
these different tests have not been yet replaced by a unified model.

```{r echo=FALSE, fig.align='center', out.width="50%"}
knitr::include_graphics("https://github.com/easystats/easystats/blob/master/hextools/modelbased/allregressions.png")
knitr::include_graphics("https://github.com/easystats/easystats/raw/main/hextools/modelbased/allregressions.png")
```

The tests mentioned above have major advantages. For instance, they are very easy to
Expand Down Expand Up @@ -97,14 +97,14 @@

```{r}
generate_data <- function(effect = 5, noise = 0.5) {
data <- data.frame()

Check warning on line 100 in vignettes/modelisation_approach.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/modelisation_approach.Rmd,line=100,col=3,[object_overwrite_linter] 'data' is an exported object from package 'utils'. Avoid re-using such symbols.
n <- 100
for (i in 1:length(effect)) {

Check warning on line 102 in vignettes/modelisation_approach.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/modelisation_approach.Rmd,line=102,col=13,[seq_linter] Use seq_along(...) instead of 1:length(...), which is likely to be wrong in the empty edge case.
participant <- data.frame(Experimental_Variable = c(seq(-3, 3, length = n / 2), seq(-3, 3, length = n / 2)))
participant$RT <- c(participant$Experimental_Variable[1:(n / 2)]**2 - effect[i], (participant$Experimental_Variable[(n / 2 + 1):n] + effect[i])) + rnorm(n, 0, abs(noise[i]))

Check warning on line 104 in vignettes/modelisation_approach.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/modelisation_approach.Rmd,line=104,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 177 characters.
participant$Condition <- rep(c("A", "B"), each = n / 2)
participant$Participant <- paste0("S", i)
data <- rbind(data, participant)

Check warning on line 107 in vignettes/modelisation_approach.Rmd

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=vignettes/modelisation_approach.Rmd,line=107,col=5,[object_overwrite_linter] 'data' is an exported object from package 'utils'. Avoid re-using such symbols.
}
data$RT <- (100 + data$RT) * 10
data
Expand Down
Loading