Nested Knowledge

Bringing Systematic Review to Life

User Tools

Site Tools


wiki:guide:tips:digitize

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:guide:tips:digitize [2022/02/09 20:25]
nicole_hardy_alumni.brown.edu
wiki:guide:tips:digitize [2022/02/09 21:13] (current)
nicole_hardy_alumni.brown.edu
Line 11: Line 11:
   - Save your high resolution figure as a .jpg, .png, .bmp, or .tiff in the same directory as your working directory in R. <WRAP center round important 90%> If you don't know where your working directory is, type getwd() in the console. This will spit out where your working directory is. To make sure the file is accessible, you can either change your working directory to be where the file is using [[http://rfunction.com/archives/1001|setwd()]], or you can save the file in the directory location specified by getwd(). </WRAP>   - Save your high resolution figure as a .jpg, .png, .bmp, or .tiff in the same directory as your working directory in R. <WRAP center round important 90%> If you don't know where your working directory is, type getwd() in the console. This will spit out where your working directory is. To make sure the file is accessible, you can either change your working directory to be where the file is using [[http://rfunction.com/archives/1001|setwd()]], or you can save the file in the directory location specified by getwd(). </WRAP>
   - Load the digitize package in your R session.   - Load the digitize package in your R session.
-  - Type in digitize("filename.filetype") in the console, changing the filename and file type in accordance with how your file is saved on your computer.+  - Type in digitize("filename.filetype") in the console, changing the file name and file type in accordance with how your file is saved on your computer.
   - Once you do this, you will need to calibrate your x and y axes, respectively.   - Once you do this, you will need to calibrate your x and y axes, respectively.
-      - On the x axis select two clearly defined points where you have the exact values. Tick marks on the x axis would be great choices. +      - On the x axisselect two clearly defined points where you have the exact values. Tick marks on the x axis would be great choices. 
-      - On the y axis select two clearly defined points where you have the exact values. Tick marks on the y axis would be great choices.+      - On the y axisselect two clearly defined points where you have the exact values. Tick marks on the y axis would be great choices.
       - Once you finish, you will see blue X's at the points you selected. {{  :wiki:guide:tips:anemia_calibration.png?nolink&  }}       - Once you finish, you will see blue X's at the points you selected. {{  :wiki:guide:tips:anemia_calibration.png?nolink&  }}
   - Type each of the points you selected in the console, hitting enter after each one. In the example above, you would do the following: 0, enter, 24, enter, 8.5, enter, 12, enter.   - Type each of the points you selected in the console, hitting enter after each one. In the example above, you would do the following: 0, enter, 24, enter, 8.5, enter, 12, enter.
Line 22: Line 22:
 <WRAP center round tip 90%> Always double check to make sure the values that R gives you align with what you're expecting. </WRAP> <WRAP center round tip 90%> Always double check to make sure the values that R gives you align with what you're expecting. </WRAP>
  
 +===== Video Walk Through: =====
 +Check out this video! If it's blurry, go directly to the YouTube page to view it.  {{youtube>4Y4172YtpYg?medium}}
 +
 +===== R Script: =====
 +<code>
 +#--------------------------------------------------------------
 +### Setting up workspace to be able to digitze graphs
 +#--------------------------------------------------------------
 +setwd("C:/Users/nhard/OneDrive/Documents")
 +install.packages('digitize')
 +library('digitize')
 +
 +digitize("highres.jpg")
 +
 +</code>
  
wiki/guide/tips/digitize.1644438335.txt.gz · Last modified: 2022/02/09 20:25 by nicole_hardy_alumni.brown.edu