diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5258994 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.Rproj.user +.Rhistory +.RData +.Ruserdata + +*_key.R + +this_file_was_ignored.R diff --git a/README.md b/README.md new file mode 100644 index 0000000..cea0cb8 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +This is a repository that you can fork to your local computer, make edits, send them back, share with classmates, and use all the git skills you are learning today! diff --git a/code/print_your_name.R b/code/print_your_name.R new file mode 100644 index 0000000..c1a8403 --- /dev/null +++ b/code/print_your_name.R @@ -0,0 +1,5 @@ +# Create an object with your name on it + +x <- "bruna" +# print that object on the console +print(x) diff --git a/code/warbler_plot.R b/code/warbler_plot.R new file mode 100644 index 0000000..548ad45 --- /dev/null +++ b/code/warbler_plot.R @@ -0,0 +1,23 @@ +# Clode to create a plot of warbler detections varying according +# to elevation using ggplot (we made a similar one last class!) +# There is one thing that is not working and you have to change + +## load packages -------------------------------------------------------- + +## load the data -------------------------------------------------------- +load("/Users/bamaral/Documents/GitHub/github-practice-test/data/warbler-data.rda") + +## look at the objects loaded-------------------------------------------- + +## create a figure with axis labels using ggplot ------------------------ +p <- + + # here are two lines that should be in your figure: + geom_smooth(method = "glm", method.args = list(family = "binomial")) + + theme_bw() + + +## save your figure as a pdf file in the 'figures' folder: -------------- +# what is the difference between these two lines of code? +ggsave("\my_plot1.pdf", plot = p, width = 7, height = 5) +ggsave("figures/my_plot2.pdf", plot = p, width = 7, height = 5) diff --git a/data/warbler-data.rda b/data/warbler-data.rda new file mode 100644 index 0000000..fad303d Binary files /dev/null and b/data/warbler-data.rda differ diff --git a/github-practice-test b/github-practice-test new file mode 160000 index 0000000..324a852 --- /dev/null +++ b/github-practice-test @@ -0,0 +1 @@ +Subproject commit 324a852c062c0da3a2ca18f762ec71563812d571 diff --git a/github-practice-test.Rproj b/github-practice-test.Rproj new file mode 100644 index 0000000..8e3c2eb --- /dev/null +++ b/github-practice-test.Rproj @@ -0,0 +1,13 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX