sample pages

WB data with tidyverse

R and the Tidyverse: next steps using WB data by Stéphane Guillou This document is redacted in R Markdown; the source file is available here: https://gitlab.com/stragu/DSH/blob/master/R/tidyverse_next_steps/tidyverse_next_steps.Rmd It is then knitted as a markdown file, which is the best version to view online and to print: https://gitlab.com/stragu/DSH/blob/master/R/tidyverse_next_steps/tidyverse_next_steps.md PD: see video at https://www.youtube.com/watch?v=2TZYeFcJQIk Setting up If you want to review the installation instructions: https://gitlab.com/stragu/DSH/blob/master/R/Installation.md If you are using your own laptop please open RStudio Make sure you have a working Internet connection On the Library’s training computers: Log in with your UQ username and password Make sure you have a working Internet connection Open the ZENworks application Look for “RStudio” Double click on RStudio, which will install both R and RStudio With RStudio open, let’s make sure we have the necessary packages installed by running this command (this might take a few minutes):

Continue reading

Test 5: Reactable Demo Cookbook

A collection of recipes used to create the reactable demos ## Insert links data <- data.frame( Address = c("https://google.com", "https://yahoo.com", "https://duckduckgo.com"), Site = c("Google", "Yahoo", "DuckDuckGo") ) reactable(data, columns = list( # Using htmltools to render a link Address = colDef(cell = function(value) { htmltools::tags$a(href = value, target = "_blank", value) }), # Or using raw HTML Site = colDef(html = TRUE, cell = function(value, index) { sprintf('<a href="%s" target="_blank">%s</a>', data$Address[index], value) }) )) {"

Continue reading

Downloadable tables in RMarkdown with DT

What we are trying to get to is an interactive table with buttons that allow you to perform the following actions: Copy to clipboard Export to CSV Export to Excel Export to PDF Print library(leaflet) library(widgetframe) ## Warning: package 'widgetframe' was built under R version 4.0.5 ## Loading required package: htmlwidgets ## Warning: package 'htmlwidgets' was built under R version 4.0.5 l <- leaflet(height=300) %>% addTiles() %>% setView(0,0,1) frameWidget(l) {"

Continue reading

Dygraphs Linked Time Series

This is dummy tex: These are extraordinary times, and while it is nice to come up with nice catchphrases, the problems at hand require us to take an honest and objective look at the very real issues that countries are facing, examine things that were not working so great, so that when we rebuild our lives, we will be stronger, and we will learn to focus on achieving concrete outcomes.

Continue reading

Sample temperature plot

Dummy text: These are extraordinary times, and while it is nice to come up with nice catchphrases, the problems at hand require us to take an honest and objective look at the very real issues that countries are facing, examine things that were not working so great, so that when we rebuild our lives, we will be stronger, and we will learn to focus on achieving concrete outcomes.

Continue reading