Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata

*_key.R

this_file_was_ignored.R
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!
5 changes: 5 additions & 0 deletions code/print_your_name.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create an object with your name on it

x <- "bruna"
# print that object on the console
print(x)
23 changes: 23 additions & 0 deletions code/warbler_plot.R
Original file line number Diff line number Diff line change
@@ -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)
Binary file added data/warbler-data.rda
Binary file not shown.
1 change: 1 addition & 0 deletions github-practice-test
Submodule github-practice-test added at 324a85
13 changes: 13 additions & 0 deletions github-practice-test.Rproj
Original file line number Diff line number Diff line change
@@ -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