-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathREADME.Rmd
58 lines (41 loc) · 1.52 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
<!-- README.md is generated from README.Rmd. Please edit that file -->
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/digitize)](http://cran.r-project.org/package=digitize)
![](http://cranlogs.r-pkg.org/badges/digitize?color=yellow)
![](http://cranlogs.r-pkg.org/badges/grand-total/digitize?color=yellowgreen)
[![Travis-CI Build Status](https://travis-ci.org/ashander/digitize.svg?branch=master)](https://travis-ci.org/ashander/digitize)
[![Codecov branch](https://img.shields.io/codecov/c/github/ashander/digitize/master.svg?maxAge=2592000)](https://codecov.io/gh/ashander/digitize)
digitize : a plot digitizer in R
===============
Get the data from a graph by providing calibration points
## Install
```
if(!require(devtools)) install.packages('devtools')
devtools::install_github("tpoisot/digitize")
```
## How to use it (version 0.0.3 and up)
```{r example}
## make a temporary file
tmp <- tempfile()
png(tmp)
plot(rnorm(10) + 1:10, xlab="x", ylab="y")
dev.off()
library(digitize)
## follow instructions on console, printed out below
mydata <- digitize(tmp)
```
## Citation
```{r}
citation('digitize')
```
## Image Types
Works with three bitmap image formats (jpeg, png, bmp), automatically detecting
the image type using package `readbitmap`.
## Earlier versions
Read a [tutorial from Luke Miller](http://lukemiller.org/index.php/2011/06/digitizing-data-from-old-plots-using-digitize/).