And that’s OK.
No.
No. Developing research questions takes time and practice. But they should never be asked with the expressed aim of getting a “significant” result.
Edwards and Roy 2017 Academic Research in the 21st Century DOI: 10.1089/ees.2016.0223
A negative result is a result nonetheless.
If your assumptions/predictions didn’t work out, ask why not.
If your results are inconclusive, ask what data might be needed.
How does your result compare with other studies?
“To fail productively, one has to be aware of the multiple contexts of that fail to find the valuable experience. To fail gloriously is to use the privileges that you have, as you are able, to make it safe for others to fail.” - Shawn Graham, Failing Gloriously
theme
Theme elements are the non-data parts of your plot (e.g., text, These can be accessed using the theme
function:
basePlot + theme(element.name = element_function())
Where element.name
refers to the element of the graph (e.g., axis.ticks for the tick marks), and the element_function
controls what aspect of it is going to be changed (e.g., line width).
theme
element_text()
controls text face, color, size, angle, etc.
element_line()
controls line color, linewidth, and linetype
element_rect()
controls rectangular areas fill and border line
element_blank()
controls whether an element is drawn or not
Try customizing your graph using the following (use ? to get function help).
Element | Function | Modifies |
---|---|---|
plot.background | element_rect | Plot background area |
plot.title | element_text | Plot title |
You can modify just one axis by adding .x
or .y
to your element name.
You can remove an element by using element_blank()
Try customizing your graph using the following (use ? to get function help).
Element | Function | Modifies |
---|---|---|
axis.line | element_line() | Axis line |
axis.text | element_text() | Text at tick marks |
axis.title | element_text() | Axis title |
axis.ticks | element_line() | Tick marks |
axis.ticks.length | unit() | Length of tick marks |
Try customizing your graph using the following (use ? to get function help).
Element | Function | Modifies |
---|---|---|
panel.background | element_rect() | Panel background |
panel.grid.major | element_line() | Major gridlines |
panel.grid.minor | element_line() | Minor gridlines |
Try customizing your graph using the following (use ? to get function help).
Element | Function | Modifies |
---|---|---|
legend.background | element_rect() | legend background |
legend.key | element_rect() | background of legend keys |
legend.text | element_text() | legend labels |
legend.title | element_text() | legend name |
Use ggsave to output to a file and control its size
ggsave("baseplot.pdf",basePlot,width=6,height=4,units="in")
There are two main types of image formats
Bitmap (also known as raster)
Vector
Wilke, C. 2019. Fundamentals of Data Visualization
Bitmap
Sharpness depends on resolution and size
Consistent appearance across platforms
Best for complex images (photos, large numbers of elements)
Vector
Sharpness is scale-independent
Can look differently using different programs
Best for simple images (line drawings, simple graphs)
File Extension | Type | Use For |
---|---|---|
.jpg | Bitmap | Photos |
.png | Bitmap | Line Drawings |
.tif | Bitmap | |
.svg | Vector | Line drawings (online) |
Vector | General purpose |
Monday: Final final project development session
Tuesday: SUBMIT POSTERS BEFORE NOON, present at 3PM