[~ 200 words]
Clearly stated background and questions / hypotheses / problems being addressed. Sets up the analysis in an interesting and compelling way.
This is a note and question for later: I saw best practices suggesting you load libaries early/in your header. Not sure if this is best practice
[~ 200 words]
Narrative: Clear narrative description of the data sources and methods. Includes data from at least two sources that were integrated / merged in R.
Code: The code associated with the project is well organized and easy to follow. Demonstrates mastery of R graphics and functions.
Data: The underlying data are publicly accessible via the web and downloaded/accessed within the Rmd script. If you want to use your own data, you must make it available on a website (e.g. Figshare) so that others are able to re-run your code.
You can do bullets like this:
You can do numbers like this:
See http://rmarkdown.rstudio.com/ for all the amazing things you can do.
Here’s my first code chunk.
1+2
## [1] 3
Load any required packages in a code chunk (you may need to install some packages):
library(tidyverse)
library(leaflet)
library(kableExtra)
knitr::opts_chunk$set(cache=TRUE) # cache the results for quick compiling
n=20
data=data.frame(x=runif(n,-180,180),
y=runif(n,-60,60),
size = runif(n, 5, 20),
category = factor(
sample(letters[1:5], n, replace = TRUE)
),
value = rnorm(n))
data %>%
slice(1:10) %>% #show only 1:n rows
kable(digits=2,align="c")%>% #make table and round to two digits
kable_styling(bootstrap_options =
c("striped", "hover", "condensed", "responsive")) #apply other formatting
x | y | size | category | value |
---|---|---|---|---|
81.58 | 9.27 | 12.61 | c | -0.98 |
-0.56 | 15.45 | 6.09 | c | 1.95 |
-159.57 | 15.24 | 10.26 | a | -1.38 |
-74.35 | 18.83 | 16.73 | c | 0.06 |
-88.13 | -32.04 | 9.68 | c | -1.48 |
94.93 | -24.71 | 18.34 | c | 0.87 |
-19.59 | -42.85 | 6.95 | e | 0.13 |
-168.72 | -24.94 | 7.30 | e | -0.57 |
-60.61 | -12.01 | 18.15 | c | -1.43 |
-78.25 | 54.48 | 9.10 | e | 0.70 |
Add any additional processing steps here.
[~200 words]
Tables and figures (maps and other graphics) are carefully planned to convey the results of your analysis. Intense exploration and evidence of many trials and failures. The author looked at the data in many different ways before coming to the final presentation of the data.
Show tables, plots, etc. and describe them.
m <- leaflet(data) %>%
addTiles() %>%
addCircleMarkers(~x, ~y, radius = ~size,color = ~as.factor(category)) %>%
addPopups(~x[2], ~y[2], "Random popup")
m # a map with the default OSM tile layer
data %>%
ggplot(aes(x=x,y=y,col=category))+
geom_point()
[~200 words]
Clear summary adequately describing the results and putting them in context. Discussion of further questions and ways to continue investigation.
All sources are cited in a consistent manner