Skip to content

Commit

Permalink
fixing figures
Browse files Browse the repository at this point in the history
  • Loading branch information
markolalovic committed Jun 6, 2024
1 parent 9b15954 commit b7139df
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ knitr::opts_chunk$set(
dev = 'svg')
```

## responsesR: simulate Likert item responses in R <img src="./man/figures/logo.png" align="right" height="160" style="float:right; height:160px;"/>
## responsesR: simulate Likert item responses in R <img src="./man/figures/logo.png" alt="Package logo" align="right" height="160" style="float:right; height:160px;"/>

<!-- badges: start -->
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Expand Down
4 changes: 2 additions & 2 deletions docs/articles/replicating_survey_data.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions docs/articles/responsesR.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/simulating_survey_data.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ articles:
replicating_survey_data: replicating_survey_data.html
responsesR: responsesR.html
simulating_survey_data: simulating_survey_data.html
last_built: 2024-06-06T09:34Z
last_built: 2024-06-06T09:53Z
urls:
reference: https://markolalovic.github.io/responsesR/reference
article: https://markolalovic.github.io/responsesR/articles
Expand Down
4 changes: 4 additions & 0 deletions fix_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def replace(str_wrong, str_right, pathfilename):
for i in range(len(str_wrongs)):
replace(str_wrongs[i], str_rights[i], './README.md')

str_wrong = '<img src="./reference/figures/logo.png" align="right" height="160" style="float:right; height:160px;">'
str_right = '<img src="./reference/figures/logo.png" alt="Package logo" align="right" height="160" style="float:right; height:160px;">'
replace(str_wrong, str_right, './docs/index.html')

# add .nojekyll to docs for githubpages
os.system("touch ./docs/.nojekyll")

Expand Down
4 changes: 2 additions & 2 deletions vignettes/articles/replicating_survey_data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ p4 <- corr_plot(new_items_F, "Reproduced agreeableness items for women")
p <- plot_grid(ggmatrix_gtable(p1), ggmatrix_gtable(p2), ggmatrix_gtable(p3), ggmatrix_gtable(p4), ncol = 2)
ggsave(file="./man/figures/articles/agree_items_correlations_comparison.svg", plot=p, width=10, height=10)
```
```{r agree_items_correlations_comparison, fig.height=10, out.width = "100%", echo = FALSE}
```{r agree_items_correlations_comparison, fig.height=10, out.width = "100%", echo = FALSE, fig.alt="Agreeableness items correlations comparison"}
knitr::include_graphics("./man/figures/articles/agree_items_correlations_comparison.svg")
```

Expand Down Expand Up @@ -186,7 +186,7 @@ p <- plot_grid(p1, p2, nrow = 2)
ggsave(file="./man/figures/articles/agreeableness_grouped_boxplot.svg", plot=p, width=10, height=4.8)
```

```{r agreeableness_grouped_boxplot, fig.height=4.8, out.width = "100%", echo = FALSE}
```{r agreeableness_grouped_boxplot, fig.height=4.8, out.width = "100%", echo = FALSE, fig.alt="Agreeableness items grouped boxplot"}
knitr::include_graphics("./man/figures/articles/agreeableness_grouped_boxplot.svg")
```

Expand Down
4 changes: 2 additions & 2 deletions vignettes/articles/simulating_survey_data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ p <- ggplot(data=data, aes(x=Prop, y=Response, fill=Course)) +
ggsave(file="./man/figures/articles/courses_grouped_bar_chart.svg", plot=p, width=10, height=3.3)
```

```{r courses_grouped_bar_chart, fig.height=3.3, out.width = "100%", echo = FALSE}
```{r courses_grouped_bar_chart, fig.height=3.3, out.width = "100%", echo = FALSE, fig.alt="Courses grouped bar chart"}
knitr::include_graphics("./man/figures/articles/courses_grouped_bar_chart.svg")
```

Expand Down Expand Up @@ -181,7 +181,7 @@ p <- ggplot(data = data_pos, aes(x = Time, y = prop, fill = resp)) +
ggsave(file="./man/figures/articles/courses_stacked_bar_chart.svg", plot=p, width=10, height=5.6)
```

```{r courses_stacked_bar_chart, fig.height=5.6, out.width = "100%", echo = FALSE}
```{r courses_stacked_bar_chart, fig.height=5.6, out.width = "100%", echo = FALSE, fig.alt="Courses stacked bar chart"}
knitr::include_graphics("./man/figures/articles/courses_stacked_bar_chart.svg")
```

Expand Down
Loading

0 comments on commit b7139df

Please sign in to comment.