Skip to content

Commit c6c9e22

Browse files
author
Mark Payne
committed
Updated manuscript notebook to give info about version. Got patterning working properly using ggpattern 0.2.0
1 parent f673d81 commit c6c9e22

2 files changed

Lines changed: 25 additions & 11 deletions

File tree

manuscript/Fish_decadal_prediction_Figures.Rmd

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ knitr::opts_chunk$set(
4343
warning = FALSE,
4444
include = TRUE,
4545
results = "markup",
46+
dev=c("png","pdf"),
4647
#dev="CairoSVG",
4748
# fig.width = 10, #Old 4:3
4849
# fig.height=14/25*10,
@@ -73,6 +74,18 @@ library(ggpattern)
7374
theme_set(theme_bw())
7475
theme_replace(strip.background = element_blank())
7576
77+
#SF Bug
78+
#Seems to be a bug here that I am encountering in sf 1.0.7. See this issue
79+
# https://github.com/r-spatial/sf/issues/1856
80+
#Error message is:
81+
# Error in st_cast.POINT(x[[1]], to, ...) :
82+
# cannot create MULTILINESTRING from POINT
83+
# In addition: Warning message:
84+
# In st_cast.GEOMETRYCOLLECTION(X[[i]], ...) :
85+
# only first part of geometrycollection is retained
86+
#One user mentioned that disabling s2 solved it for them. Also worked for me.
87+
sf_use_s2(FALSE)
88+
7689
```
7790

7891
by Mark R Payne <br>
@@ -1248,7 +1261,7 @@ for(plt.cfg in sp.plt.cfg) {
12481261
labels=plt.cfg$fill.lbls,
12491262
limits=plt.cfg$fill.lims,
12501263
show.limits=TRUE)+
1251-
# #Significance
1264+
#Significance
12521265
geom_sf_pattern(data=met.sig,
12531266
aes(pattern_fill="Not significant\n(p>0.05)"),
12541267
fill=NA,
@@ -1271,6 +1284,7 @@ for(plt.cfg in sp.plt.cfg) {
12711284
title=plt.cfg$fill.ttl,
12721285
ticks=TRUE,
12731286
order=1,
1287+
ticks.colour="black",
12741288
frame.colour="black"),
12751289
pattern_fill=guide_legend(title=element_blank(),
12761290
order=2),
@@ -1464,6 +1478,12 @@ wrap_plots(this.p.smooth,this.fixed.lead,ncol=2) +
14641478
14651479
```
14661480

1481+
## Session details
1482+
1483+
```{r}
1484+
sessionInfo()
1485+
```
1486+
14671487

14681488
***
14691489
*This work by Mark R Payne is licensed under a Creative Commons

renv.lock

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -581,16 +581,10 @@
581581
},
582582
"ggpattern": {
583583
"Package": "ggpattern",
584-
"Version": "0.3.2-11",
585-
"Source": "GitHub",
586-
"Remotes": "trevorld/gridpattern",
587-
"RemoteType": "github",
588-
"RemoteHost": "api.github.com",
589-
"RemoteRepo": "ggpattern",
590-
"RemoteUsername": "coolbutuseless",
591-
"RemoteRef": "HEAD",
592-
"RemoteSha": "2f72148594cf2039cfda16dbd6927a2d7e3aca91",
593-
"Hash": "86ee92bd8d9f196f505c0b4097888781",
584+
"Version": "0.2.0",
585+
"Source": "Repository",
586+
"Repository": "CRAN",
587+
"Hash": "38a9ea964d336bb3d43403fb085fc8c5",
594588
"Requirements": [
595589
"ggplot2",
596590
"glue",

0 commit comments

Comments
 (0)