Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
changes in plots
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraVarela committed Apr 29, 2014
2 parents 8a833f4 + 51b89da commit ff9c648
Show file tree
Hide file tree
Showing 11 changed files with 249 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
@@ -0,0 +1,2 @@
.DS_Store
README.Rmd
3 changes: 1 addition & 2 deletions .gitignore
@@ -1,12 +1,11 @@
.Rproj.user
.Rhistory
.RData
.Rbuildignore
r_avis.Rproj
localNotes.md
localScripts.R
anRpackage.Rcheck
rAvis.Rcheck
#rAvis_*.tar.gz
rAvis-Ex.R
bugs

2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -2,7 +2,7 @@ Package: rAvis
Encoding: UTF-8
Type: Package
Title: Interface to the bird-watching datasets at proyectoavis.com
Version: 0.1.1
Version: 0.1.2
Date: 2014-03-05
BugReports: https://github.com/ropensci/rAvis/issues
Author: Javier González Hernández <javigzz@yahoo.es>, Sara Varela González
Expand Down
6 changes: 5 additions & 1 deletion R/plotFunctions.R
Expand Up @@ -116,7 +116,11 @@ avisMap<-function(obs, label = '', maptype = 'admin')
{
.avisCacheReturnOrSetup(".ravis_img_ipeninsula", function(){

<<<<<<< HEAD
brick (system.file('extdata/peninsula.tif', package="rAvis"))
=======
brick ( system.file('tif/peninsula.tif', package="rAvis"))
>>>>>>> 51b89da6948c7d5eebd10583490f4b862bbd44d2

})
}
Expand All @@ -125,7 +129,7 @@ avisMap<-function(obs, label = '', maptype = 'admin')
{
.avisCacheReturnOrSetup(".ravis_img_canarias", function(){

brick ( system.file('extdata/canarias.tif', package="rAvis"))
brick ( system.file('tif/canarias.tif', package="rAvis"))

})
}
107 changes: 107 additions & 0 deletions README.Rmd
@@ -0,0 +1,107 @@
rAvis
=====

```{r include=FALSE}
opts_chunk$set(fig.path = "inst/assets/figure")
```


`rAvis`: an R-package to download the information stored in “proyectoavis”, a citizen science bird project.

[Proyectoavis web site](http://proyectoavis.com/cgi-bin/portada.cgi)

## Installation

### Stable version from CRAN:

```{r eval=FALSE}
install.packages ("rAvis")
library("rAvis")
```

### Install with devtools

In the meantime you can install this development version with devtools package

```{r eval=FALSE}
install.packages("devtools")
library("devtools")
install_github("javigzz/rAvis")
library("rAvis")
```

Load the library

```{r}
library("rAvis")
```


## Try some command

### Get species observation data

```{r}
q <- avisQuerySpecies("bubo bubo")
head(q)
```

### Render a map

```{r}
avisMapSpecies("pica pica")
```

or with a physical map behind:

```{r}
avisMapSpecies("pica pica", "phys")
```

### Disable INFO messages

```{r}
avisSetup(verbose=FALSE)
```


## See help

Package help for more info

```r
?rAvis
```

## Meta

Please report any issues or bugs](https://github.com/ropensci/rAvis/issues).

License: GPL-2

This package is part of the [rOpenSci](http://ropensci.org/packages) project.

To cite package `rAvis` in publications use:

```coffee
To cite package ‘rAvis’ in publications use:

Javier González Hernández and Sara Varela González (2014). rAvis: Interface to the bird-watching datasets at proyectoavis.com. R
package version 0.1.2.

A BibTeX entry for LaTeX users is

@Manual{,
title = {rAvis: Interface to the bird-watching datasets at proyectoavis.com},
author = {Javier González Hernández and Sara Varela González},
year = {2014},
note = {R package version 0.1.2},
}

ATTENTION: This citation information has been auto-generated from the package DESCRIPTION file and may need manual editing, see
help("citation")’.
```

Get citation information for `rAvis` in R by `citation(package = 'rAvis')`

[![](http://ropensci.org/public_images/github_footer.png)](http://ropensci.org)
153 changes: 133 additions & 20 deletions README.md
@@ -1,56 +1,169 @@
rAvis
=====

rAvis: an R-package to download the information stored in “proyectoavis”, a citizen science bird project.

# To install from CRAN:

The package is NOT yet stored in CRAN repository. You may try to install it from CRAN from the R console with::

install.packages ("rAvis")

library(rAvis)
`rAvis`: an R-package to download the information stored in “proyectoavis”, a citizen science bird project.

# Install with devtools
[Proyectoavis web site](http://proyectoavis.com/cgi-bin/portada.cgi)

## Installation

### Stable version from CRAN:


```r
install.packages("rAvis")
library("rAvis")
```


### Install with devtools

In the meantime you can install this development version with devtools package

```coffee

```r
install.packages("devtools")
library(devtools)
library("devtools")
install_github("javigzz/rAvis")
library(rAvis)
library("rAvis")
```

# Try some command

## Get species observation data
Load the library

```coffee

```r
library("rAvis")
```



## Try some command

### Get species observation data


```r
q <- avisQuerySpecies("bubo bubo")
head(q)
```

## Render a map
```
## Id..Obs. Nombre.comun Especie Fecha Numero Com.Aut
## 1 88274 Búho Real Bubo bubo 20-4-2014 2 Aragón
## 2 87902 Búho Real Bubo bubo 29-3-2014 1 Aragón
## 3 87516 Búho Real Bubo bubo 12-3-2014 1 Aragón
## 4 86733 Búho Real Bubo bubo 3-9-2013 1 Comunidad Valenciana
## 5 86732 Búho Real Bubo bubo 3-9-2013 1 Comunidad Valenciana
## 6 86731 Búho Real Bubo bubo 3-9-2013 1 Región de Murcia
## Provincia UTM Observador Periodo Hora Edad Sexo
## 1 Teruel 30TXL41 torri NA 08:05:00
## 2 Teruel 30TXL52 torri NA 17:30:00
## 3 Teruel 30TXL41 torri NA 17:30:00
## 4 Alicante 30SXH80 p.perales NA 21:00:00 adulto macho
## 5 Alicante 30SXH80 p.perales NA 21:03:00 juvenil indeterminado
## 6 Murcia 30SXH80 p.perales NA 21:00:00 adulto macho
## Interes Grado.Reprod. Categ.Fenol. Habitat
## 1 0 0
## 2 0 0
## 3 reproducción segura 11 0
## 4 16 3 roquedos de interior
## 5 comportamiento inusual 0 3 terrenos agrícolas
## 6 16 3 roquedos de interior
## Codigo.de.Habitat
## 1 NA
## 2 NA
## 3 NA
## 4 NA
## 5 NA
## 6 NA
## Notas
## 1 barranco la Salobre - RUBIELOS de la CERIDA. DDAK 250m. S.O. 1 adulto y 1 pll al menos
## 2 Arroyo de los Calderones - TORRE los NEGROS. Con JMPS
## 3 Rambla del Ramblon fuente la Salobre - RUBIELOS de la CERIDA. Con SMO y CAL
## 4
## 5 Posado sobre poste eléctrico a plena luz del día-
## 6
## x y
## 1 -1.2818 40.77
## 2 -1.1609 40.86
## 3 -1.2818 40.77
## 4 -0.8937 37.97
## 5 -0.8937 37.97
## 6 -0.8937 37.97
```

```coffee

### Render a map


```r
avisMapSpecies("pica pica")
```

![plot of chunk unnamed-chunk-6](inst/assets/figureunnamed-chunk-6.png)


or with a physical map behind:

```coffee

```r
avisMapSpecies("pica pica", "phys")
```

## Disable INFO messages
![plot of chunk unnamed-chunk-7](inst/assets/figureunnamed-chunk-7.png)

```coffee
avisSetup(verbose=FALSE)

### Disable INFO messages


```r
avisSetup(verbose = FALSE)
```


# See help

## See help

Package help for more info

??rAvis
```r
?rAvis
```

## Meta

Please report any issues or bugs](https://github.com/ropensci/rAvis/issues).

License: GPL-2

This package is part of the [rOpenSci](http://ropensci.org/packages) project.

To cite package `rAvis` in publications use:

```coffee
To cite package ‘rAvis’ in publications use:

Javier González Hernández and Sara Varela González (2014). rAvis: Interface to the bird-watching datasets at proyectoavis.com. R
package version 0.1.2.

A BibTeX entry for LaTeX users is

@Manual{,
title = {rAvis: Interface to the bird-watching datasets at proyectoavis.com},
author = {Javier González Hernández and Sara Varela González},
year = {2014},
note = {R package version 0.1.2},
}

ATTENTION: This citation information has been auto-generated from the package DESCRIPTION file and may need manual editing, see
help("citation")’.
```

Get citation information for `rAvis` in R by `citation(package = 'rAvis')`

[![](http://ropensci.org/public_images/github_footer.png)](http://ropensci.org)
Binary file removed data/ravis_user_pass.rda
Binary file not shown.
Binary file added inst/assets/figureunnamed-chunk-6.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added inst/assets/figureunnamed-chunk-7.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.

0 comments on commit ff9c648

Please sign in to comment.