Skip to content

Commit

Permalink
updated bookdown structe and workflow + minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Andros-Spica committed Sep 24, 2019
1 parent eabf902 commit 15b94f5
Show file tree
Hide file tree
Showing 114 changed files with 24,646 additions and 288 deletions.
31 changes: 1 addition & 30 deletions 1_installing.Rmd
Original file line number Diff line number Diff line change
@@ -1,39 +1,10 @@
---
site: "bookdown::bookdown_site"
output:
bookdown::gitbook: default
html_document:
fig_caption: yes
fig_height: 7
fig_width: 7
highlight: tango
fontsize: 12pt
geometry: margin = 1.2in
header-includes:
- \usepackage{placeins}
- \usepackage{fancyhdr}
- \usepackage{setspace}
- \usepackage{chngcntr}
- \usepackage{microtype}
always_allow_html: yes
urlcolor: blue
---

```{r, echo = FALSE, message=FALSE, warning=FALSE}
library(knitr)
opts_chunk$set(collapse = TRUE, comment = "#>")
library(png)
library(grid)
library(gridExtra)
```

# Installing cerUB {#install}

There are two options for installing the *cerUB* package:

a. Downloading the latest release version from [Zenodo.org](zenodo.org) and installing it in [RStudio](rstudio.com) (Tools > Install Packages... > Install from: Package Archive File).

> Angourakis, Andreas, & Martínez Ferreras, Verònica. (2017, September 23). cerUB - Protocols for exploring archaeometric data (R package). Zenodo. http://doi.org/10.5281/zenodo.975451
> Angourakis, Andreas, & Martínez Ferreras, Verònica. (2017, September 23). cerUB - Protocols for exploring archaeometric data (R package). Zenodo. http://doi.org/10.5281/zenodo.975451
b. Installing the latest development version directly from [GitHub](github.com) ([Andros-Spica/cerUB](https://github.com/Andros-Spica/cerUB)), using the *devtools* package:

Expand Down
6 changes: 4 additions & 2 deletions 3_prot1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ biplot_2d(prot1,

\pagebreak

The default setting detaches the variables projections (arrows) and places them as a miniature in the bottom-right corner. In this format they may still be interpreted, much like the North when reading a map. Remember though: the more longer arrows you see, the less each one of them is reliable when comparing point values. Here, we were 'lucky' for getting two nearly orthogonal variables (CaO and MgO), which means, for instance, that those observations in the top-left corner are surely more calcareous than those in the bottom-right. See the [Appendix section](8_Appendix_biplot.html) for more details.
The default setting detaches the variables projections (arrows) and places them as a miniature in the bottom-right corner. In this format they may still be interpreted, much like the North when reading a map. Remember though: the more longer arrows you see, the less each one of them is reliable when comparing point values. Here, we were 'lucky' for getting two nearly orthogonal variables (CaO and MgO), which means, for instance, that those observations in the bottom-left corner are surely more calcareous than those in the top-right. See the [Appendix section](8_Appendix_biplot.html) for more details.

If detaching the arrows is not of your preference, you can disable this:

Expand Down Expand Up @@ -439,7 +439,9 @@ You will need to install [ImageMagick](www.imagemagick.org) to be able to genera

In these images, you get what you would see when running the biplot_3d function in a regular R session.

![Prot1_Biplot3D.gif](publication_appendices/Appendix_E_Animated_GIFs/E1_Prot1_Biplot3D.gif)
```{r Prot1Biplot3Danimation, eval=!params$ispdf, echo=FALSE, dependson='run.coevo.coeta-frames', fig.cap='Prot1_Biplot3D.gif'}
knitr::include_graphics("publication_appendices/Appendix_E_Animated_GIFs/E1_Prot1_Biplot3D.gif")
```

NOTE: Animated GIF will not be displayed in the pdf version of this document.

Expand Down
12 changes: 9 additions & 3 deletions 4_prot2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ biplot2d3d::biplot_2d(prot2b_2d,

\pagebreak


### Biplot 3D

```{r, eval=FALSE}
Expand All @@ -337,7 +336,11 @@ biplot2d3d::animation(directory = directories$prot2,
file_name = "Prot2a_Biplot3D")
```

![Prot2a_Biplot3D.gif](publication_appendices/Appendix_E_Animated_GIFs/E2_Prot2a_Biplot3D.gif)
```{r Prot2Biplot3Danimation, eval=!params$ispdf, echo=FALSE, dependson='run.coevo.coeta-frames', fig.cap='Prot2_Biplot3D.gif'}
knitr::include_graphics("publication_appendices/Appendix_E_Animated_GIFs/E2_Prot2a_Biplot3D.gif")
```

NOTE: Animated GIF will not be displayed in the pdf version of this document.

\pagebreak

Expand All @@ -362,5 +365,8 @@ biplot2d3d::animation(directory = directories$prot2,
file_name = "Prot2b_Biplot3D")
```

![Prot2b_Biplot3D_snapshot.png](publication_appendices/Appendix_E_Animated_GIFs/E2_Prot2b_Biplot3D.gif)
```{r Prot2bBiplot3Danimation, eval=!params$ispdf, echo=FALSE, dependson='run.coevo.coeta-frames', fig.cap='E2_Prot2b_Biplot3D.gif'}
knitr::include_graphics("publication_appendices/Appendix_E_Animated_GIFs/E2_Prot2b_Biplot3D.gif")
```

NOTE: Animated GIF will not be displayed in the pdf version of this document.
5 changes: 4 additions & 1 deletion 5_prot3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,8 @@ biplot2d3d::animation(directory = directories$prot3,
file_name = "Prot3_Biplot3D")
```

![Prot3_Biplot3D.gif](publication_appendices/Appendix_E_Animated_GIFs/E3_Prot3_Biplot3D.gif)
```{r Prot3Biplot3Danimation, eval=!params$ispdf, echo=FALSE, dependson='run.coevo.coeta-frames', fig.cap='Prot3_Biplot3D.gif'}
knitr::include_graphics("publication_appendices/Appendix_E_Animated_GIFs/E3_Prot3_Biplot3D.gif")
```

NOTE: Animated GIF will not be displayed in the pdf version of this document.
5 changes: 4 additions & 1 deletion 6_prot4.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,8 @@ biplot2d3d::animation(directory = directories$prot4,
file_name = "Prot4_Biplot3D")
```

![Prot4_Biplot3D.gif](publication_appendices/Appendix_E_Animated_GIFs/E4_Prot4_Biplot3D.gif)
```{r Prot4Biplot3Danimation, eval=!params$ispdf, echo=FALSE, dependson='run.coevo.coeta-frames', fig.cap='Prot4_Biplot3D.gif'}
knitr::include_graphics("publication_appendices/Appendix_E_Animated_GIFs/E4_Prot4_Biplot3D.gif")
```

NOTE: Animated GIF will not be displayed in the pdf version of this document.
5 changes: 4 additions & 1 deletion 7_prot4_ship.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -283,5 +283,8 @@ biplot2d3d::animation(directory = directories$prot4_Shipwreck,
file_name = "Prot4_Shipwreck_Biplot3D")
```

![Prot4_Shipwreck_Biplot3D.gif](publication_appendices/Appendix_E_Animated_GIFs/E5_Prot4_Shipwreck_Biplot3D.gif)
```{r Prot4ShipwreckBiplot3Danimation, eval=!params$ispdf, echo=FALSE, dependson='run.coevo.coeta-frames', fig.cap='Prot4_Shipwreck_Biplot3D.gif'}
knitr::include_graphics("publication_appendices/Appendix_E_Animated_GIFs/E5_Prot4_Shipwreck_Biplot3D.gif")
```

NOTE: Animated GIF will not be displayed in the pdf version of this document.
Binary file modified _bookdown_files/_main_files/figure-html/unnamed-chunk-67-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions _output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
bookdown::gitbook:
lib_dir: assets
split_by: section
css: style.css
config:
toc:
collapse: subsection
scroll_highlight: yes
before: |
<li><a href="https://andros-spica.github.io/cerUB_tutorial/">cerUB tutorial</a></li>
Andreas Angourakis
after: |
<li><a href="https://github.com/rstudio/bookdown">Proudly published with bookdown</a></li>
toolbar:
position: fixed
edit : null
download: ["pdf"]
search: yes
fontsettings:
theme: white
family: sans
size: 2
sharing:
facebook: yes
twitter: yes
google: no
linkedin: no
weibo: no
instapaper: no
vk: no
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
keep_tex: yes
Binary file modified docs/_main_files/figure-html/unnamed-chunk-67-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 15b94f5

Please sign in to comment.