Assignment 2: Image Formats
For this assignment, I’m asking you to create a single Word document (or similar non-Microsoft *.doc or *.docx file) to demonstrate different image qualities. Note I’m not having you render a document with Quarto because the point is to access the exported images rather than to create them in the document.
You can approximately follow the script we created in class [link will be posted after class]. Create a figure using ggplot2 or base R. Save it 5 ways:
- Using RStudio “Export” button (choose any options you want or use all the defaults)
- Using
agg_jpegwithquality = 100(no compression) - Using
agg_jpegwithquality = 10(high compression) - Using
agg_tiffwithcompression = "none" - Using
agg_tiffwithcompression = "lzw"
For each file, follow the Science figure guidelines, and choose whether you’ll create a one-column or two-column figure. Make sure your figure meets the size and resolution criteria.
Then, in your Word doc:
- Create a table showing the properties of each of the 5 images: device, compression, and file size.
- Insert the high compression JPEG and the LZW compression TIFF. Write a short paragraph describing the differences you notice.
- Insert the RStudio Export image. Write a short paragraph describing how you sized the image for the Science guidelines and whether it was easier or harder than using the scripted graphics devices.
Upload the completed Word doc on Canvas.
Let me know if you have any questions!