dboslab / expowo Goto Github PK
View Code? Open in Web Editor NEWData Mining of Plant Diversity and Distribution for R
Home Page: https://dboslab.github.io/expowo/
License: Other
Data Mining of Plant Diversity and Distribution for R
Home Page: https://dboslab.github.io/expowo/
License: Other
First release:
usethis::use_cran_comments()
Title:
and Description:
@return
and @examples
Authors@R:
includes a copyright holder (role 'cph')Prepare for release:
git pull
urlchecker::url_check()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
rhub::check_for_cran()
git push
Submit to CRAN:
usethis::use_version('major')
devtools::submit_cran()
Wait for CRAN...
git push
usethis::use_github_release()
usethis::use_dev_version()
usethis::use_news_md()
git push
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โ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.