Have you ever read a paper and realized that the data you need is in a figure, but you can't pull the exact number from it? Have no fear! You can actually digitize these figures to extract the data you need.
R, RStudio, and the digitize package need to be installed beforehand. See this link for instructions on how to install R and RStudio. See this link for how to install packages.
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 setwd(), or you can save the file in the directory location specified by getwd().
Always double check to make sure the values that R gives you align with what you're expecting.
Check out this video! If it's blurry, go directly to the YouTube page to view it.
#-------------------------------------------------------------- ### Setting up workspace to be able to digitze graphs #-------------------------------------------------------------- setwd("C:/Users/nhard/OneDrive/Documents") install.packages('digitize') library('digitize') digitize("highres.jpg")