You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/howto.Rmd
+18-15Lines changed: 18 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ One can create a true colour image map from optical model output of the Great Ba
30
30
map_ereefs(target_date= c(2019, 2, 28))
31
31
```
32
32
33
-
<imgsrc="vignette-fig-exmp1-1.png"alt="plot of chunk exmp1"width="60%"style="display: block; margin: auto;" />
33
+
<imgsrc="vignette-fig-exmp1-1.png"alt="plot of chunk exmp1"width="80%"style="display: block; margin: auto;" />
34
34
35
35
It is also possible to map optical colour classes (note the default colour scheme is not great for this, so one might want to add a different colour scale after producing the figure handle):
36
36
@@ -39,7 +39,7 @@ It is also possible to map optical colour classes (note the default colour schem
<imgsrc="vignette-fig-exmp2-1.png"alt="plot of chunk exmp2"width="60%"style="display: block; margin: auto;" />
42
+
<imgsrc="vignette-fig-exmp2-1.png"alt="plot of chunk exmp2"width="80%"style="display: block; margin: auto;" />
43
43
44
44
We can also map, for example, the extent of the influence of the Burdekin River (choose menu option 8 or 7):
45
45
@@ -51,11 +51,19 @@ map_ereefs(
51
51
)
52
52
```
53
53
54
-
<imgsrc="vignette-fig-exmp3-1.png"alt="plot of chunk exmp3"width="60%"style="display: block; margin: auto;" />
54
+
<imgsrc="vignette-fig-exmp3-1.png"alt="plot of chunk exmp3"width="80%"style="display: block; margin: auto;" />
55
55
56
56
The colour scale can be customised. For example, the code below changes the limits of the colour scale so that the max colour intensity is achieved when 1% of water is river water, and change the colours:
57
57
58
-
<imgsrc="vignette-fig-exmp4-1.png"alt="plot of chunk exmp4"width="60%"style="display: block; margin: auto;" />
<imgsrc="vignette-fig-exmp4-1.png"alt="plot of chunk exmp4"width="80%"style="display: block; margin: auto;" />
59
67
60
68
We can also plot different variables such as chlorophyll-a at a particular depth (e.g., 5 m below MSL; default is at the surface), add a land map to the plot, and focus on a particular region (choose menu option 9 for higher resolution):
61
69
@@ -67,14 +75,15 @@ map_ereefs(
67
75
)
68
76
```
69
77
70
-
<imgsrc="vignette-fig-exmp5-1.png"alt="plot of chunk exmp5"width="60%"style="display: block; margin: auto;" />
78
+
<imgsrc="vignette-fig-exmp5-1.png"alt="plot of chunk exmp5"width="80%"style="display: block; margin: auto;" />
71
79
72
80
## Images for animations
73
81
74
-
We can also create the image files needed for a true colour animation of surface salinity in this area (then use [`gifski`](https://cran.r-project.org/web/packages/gifski/index.html) or similar to generate the animation). Below, `salt_list` is a list that includes the plot handle as well as the temporal mean salinity for each point in the map over the period of the animation, plus the cell centre geo-locations (choose menu option 9). By default, images are saved to the directory `"ToAnimate"`, but can be changed via the argument `output_dir`:
82
+
We can also create the image files needed for a true colour animation of surface salinity in this area (then use [`gifski`](https://cran.r-project.org/web/packages/gifski/index.html) or similar to generate the animation). Below, `salt_list` is a list that includes the plot handle as well as the temporal mean salinity for each point in the map over the period of the animation, plus the cell centre geo-locations (choose menu option 9). By default, images are saved to the directory `"ToAnimate"`, but can be changed via the argument `output_dir` (**NB: the code below is not run**):
<imgsrc="vignette-fig-exmp8-1.png"alt="plot of chunk exmp8"width="60%"style="display: block; margin: auto;" /><imgsrc="vignette-fig-exmp8-2.png"alt="plot of chunk exmp8"width="60%"style="display: block; margin: auto;" />
115
+
<imgsrc="vignette-fig-exmp8-1.png"alt="plot of chunk exmp8"width="80%"style="display: block; margin: auto;" />
110
116
111
-
We can also extract a vertical profile (rather than a slice) of, for example, chlorophyll-a and nitrate at a single location and time (choose menu options 11):
117
+
We can also extract a vertical profile (rather than a slice) of, for example, chlorophyll-a and nitrate at a single location and time (choose menu option 11):
The colour scale can be customised. For example, the code below changes the limits of the colour scale so that the max colour intensity is achieved when 1% of water is river water, and change the colours:
We can also create the image files needed for a true colour animation of surface salinity in this area (then use [`gifski`](https://cran.r-project.org/web/packages/gifski/index.html) or similar to generate the animation). Below, `salt_list` is a list that includes the plot handle as well as the temporal mean salinity for each point in the map over the period of the animation, plus the cell centre geo-locations (choose menu option 9). By default, images are saved to the directory `"ToAnimate"`, but can be changed via the argument `output_dir`:
115
+
We can also create the image files needed for a true colour animation of surface salinity in this area (then use [`gifski`](https://cran.r-project.org/web/packages/gifski/index.html) or similar to generate the animation). Below, `salt_list` is a list that includes the plot handle as well as the temporal mean salinity for each point in the map over the period of the animation, plus the cell centre geo-locations (choose menu option 9). By default, images are saved to the directory `"ToAnimate"`, but can be changed via the argument `output_dir` (**NB: the code below is not run**):
We can also extract a vertical profile (rather than a slice) of, for example, chlorophyll-a and nitrate at a single location and time (choose menu options 11):
151
+
We can also extract a vertical profile (rather than a slice) of, for example, chlorophyll-a and nitrate at a single location and time (choose menu option 11):
0 commit comments