diff --git a/R/ui-elements.R b/R/ui-elements.R index 89668430..f8976b2c 100644 --- a/R/ui-elements.R +++ b/R/ui-elements.R @@ -1710,5 +1710,5 @@ abm_plotlyfy <- function(graphobj, tooltip, optionsbar = FALSE, showlegend = TRU graphobj |> ggplotly(tooltip = tooltip) |> config(displayModeBar = optionsbar) |> - layout(autosize = TRUE, showlegend = showlegend, font = list(family = "figtree")) + layout(autosize = TRUE, showlegend = showlegend, font = list(family = "Figtree")) } diff --git a/inst/extdata/abm.Rmd b/inst/extdata/abm.Rmd index ed550a1a..64d81ffe 100644 --- a/inst/extdata/abm.Rmd +++ b/inst/extdata/abm.Rmd @@ -15,15 +15,23 @@ params: ```{css echo=FALSE} @font-face { - font-family: 'Figtree'; + font-family: 'Figtree Light'; font-style: normal; font-weight: 400; src: url('fonts/figtree-v5-latin_latin-ext-regular.woff2') format('woff2'); } body { + font-family: 'Figtree Light'; +} +@font-face { font-family: 'Figtree'; + font-style: normal; + font-weight: 400; + src: url('fonts/figtree-v5-latin_latin-ext-regular.woff2') format('woff2'); } + + ``` @@ -350,6 +358,7 @@ if (nrow(df_diva) > 0) { "Publication year: %{x}
", "Publication volume, frac: %{text}
")) |> layout( + font = list(family = "Figtree"), autosize = TRUE, showlegend = TRUE, margin = list(l = 30, t = 40, r = 30), @@ -750,7 +759,7 @@ Row {.tabset data-height=6000} ```{r, fig.width=6, fig.height=5, out.width='95%'} if(df_copub %>% filter(!is.na(P_full)) %>% nrow() > 0) { - (abm_graph_scop_copub(df_scop_copub) + + (abm_graph_copub(df_copub) + theme(axis.title.x = element_blank())) |> abm_plotlyfy(tooltip = c("y","x")) |> style(hovertemplate = paste0("%{data.legendgroup}
", @@ -944,7 +953,7 @@ Row ### **Notes** [ more...](`r STATIC`/ABM_guide.html#open-access){target="_blank" style="position:relative;float:right;"} -The Open Access type of the publications was fetched from the [Unpaywall REST API](https://unpaywall.org/products/api). The method to determine the OA type is presented [here](https://support.unpaywall.org/support/solutions/articles/44001777288-what-do-the-types-of-oa-status-green-gold-hybrid-and-bronze-mean-). +The Open Access type of the publications was fetched from [OpenAlex](https://openalex.org). The method to determine the OA type is presented on [OpenAlex support pages](https://help.openalex.org/hc/en-us/articles/24347035046295-Open-Access-OA). However, note that we count the bronze category as Not OA, since there is no identifyable license. In summary, the different OA types can be described as follows: @@ -956,7 +965,7 @@ In summary, the different OA types can be described as follows: - *Green:* The full text has been found in an institutional repository, such as DiVA. -**N.B.**: This table is based on peer-reviewed publications for which Unpaywall could determine the OA type (necessary condition: have a DOI number). Unpaywall's method is empirical and does not strictly equate to copyright license. As a consequence, the OA status of a given publication may vary with time --- for example turning from *"Not OA"* to *"Green"* when a full text is added to DiVA. +**N.B.**: This table is based on peer-reviewed publications for which OpenAlex could determine the OA type (necessary condition: have a DOI number). OpenAlex's method is empirical and does not strictly equate to copyright license. As a consequence, the OA status of a given publication may vary with time --- for example turning from *"Not OA"* to *"Green"* when a full text is added to DiVA. Scopus