GithubHelp home page GithubHelp logo

dboslab / expowo Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 80.76 MB

Data Mining of Plant Diversity and Distribution for R

Home Page: https://dboslab.github.io/expowo/

License: Other

R 99.95% Rez 0.05%
r r-package data-mining extractor

expowo's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

brunovilela

expowo's Issues

Release expowo 2.0

First release:

Prepare for release:

  • git pull
  • Check if any deprecation processes should be advanced, as described in Gradual deprecation
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • rhub::check_for_cran()
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('major')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted ๐ŸŽ‰
  • git push
  • usethis::use_github_release()
  • usethis::use_dev_version()
  • usethis::use_news_md()
  • git push
  • Finish blog post
  • Tweet
  • Add link to blog post in pkgdown news menu

Error message when using powoMap

Dear expowo team,

Thanks for the fantastic package. I was trying to create a map using the powoMap function and was coming up with an error message:

Error in `[[<-.data.frame`(`*tmp*`, i, value = numeric(0)) : 
 replacement has 0 rows, data has 368. 

I'm not sure if this is a bug or an error on my end, but any help would be greatly appreciated.

Here is a look at my code:

# Instal
install.packages("devtools")
devtools::install_github("DBOSlab/expowo")
library(expowo)

install.packages("rnaturalearthdata")
library(rnaturalearthdata)

#set wd
setwd("C:/solgen")


#---- Mine sp dist from Powo
?powoSpecies

mapspdist <- powoSpecies(family = "Solanaceae", 
                         synonyms = TRUE,
                         genus = NULL,
                         country = NULL,
                         verbose = TRUE,
                         save = TRUE,
                         dir = "results_powoSpecies",
                         filename = "Solanaceae_gen")



## produces a cat of each genus and number of sp per gen
## takes a little while to load

#---- Create global level scale map
?powoMap

powoMap(inputdf = mapspdist,
        botctrs = TRUE,
        distcol = "native_to_botanical_countries",
        taxclas = "genus",
        verbose = FALSE,
        save = TRUE,
        vir_color = "viridis",
        bre_color = NULL,
        leg_title = "SR",
        dpi = 600,
        dir = "results_powoMap",
        filename = "global_richness_botcountry_map",
        format = "jpg")# can save as a tiff? maybe can pull it into Q
Reading layer `level3' from data source `C:\solgen\WGSRPD\level3\level3.shp' using driver `ESRI Shapefile'
Simple feature collection with 369 features and 4 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -180 ymin: -90 xmax: 180 ymax: 83.62361
Geodetic CRS:  WGS 84
Error in `[[<-.data.frame`(`*tmp*`, i, value = numeric(0)) : 
  replacement has 0 rows, data has 368

my r version information is as follows:

> R.version
               _                                
platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          4.0                              
year           2024                             
month          04                               
day            24                               
svn rev        86474                            
language       R                                
version.string R version 4.4.0 (2024-04-24 ucrt)
nickname       Puppy Cup 
> packageVersion("expowo")
[1] โ€˜2.0โ€™

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.