cbig / zonator Goto Github PK
View Code? Open in Web Editor NEWUtility tools for for anybody interested in using a familiar tool (R) in setting up Zonation runs and managing Zonation results.
Home Page: https://cbig.github.io/zonator/
Utility tools for for anybody interested in using a familiar tool (R) in setting up Zonation runs and managing Zonation results.
Home Page: https://cbig.github.io/zonator/
Both plot_curves
and plot_grp_curves
should have only 1 plotting function. Preprocessing the data (read in and parse) should be done separately (still within 1 function?).
performance(x, top.fraction)
x
= Zvariant object
top.fraction
= Top fraction (in percentage!) of the landscape for which the performance level is returned. E.g. top.fraction=15
would equal to rank >= 0.85
. Can be a single value or a vector of values.
value
= A data frame with given percentages as columns and feature as rows.
regular raster
s are just fine
E.g. raster path in spp file
C:Data\foo\bar\some_spam.img
becomes name foo bar some_spam
Method should save all the associated (Zonation input) files on the file system.
There is already a invert.x
option plot()
for ZCurvesDataframe and ZGroupCurvesDataframe, but this only affects the labels on the x-axis. Would be useful if the plotting order could be changed.
If there are many features / groups to plot in performance curves, the graphical resolution of the plot may not be good. Plot generic should inspect how many lines need to be plotted and adjust the linetype/color mappings accordingly.
Simply do:
run_bat([email protected])
get_variant(x, index)
where x
is a Zproject
object and index is either a character or numeric index (name or a position of a variant). index
should be checked for validity.
So far more-or-less necessary packages are all in depends
in DESCRIPTION
file. See if some of these could be moved to imports
or suggests
.
bat-files created by create_zproject()
include trailing whitespaces, remove these.
Feturenames are only assigned if set explicitly. They should be set even is using the default ones.
When Zproject is being created based on existing project, a lot of files are being read in. Implement debug logging to track which files are read in in case something goes wrong.
Does not find zig(3or4).exe in windows, even if the path variable is correct.
Simple functionality for writing dat (ini) files needed.
It would be good to have this option, as e.g. the project maker makes projects so that the bat file is written under the variant folder.
This would probably call for example data. Could the tutorial be used?
... at least for dummies :)
Create_zproject would benefit from a feature where user could define different paths to be used in .bat files. Now root.path is used automatically which is awkward if one wants to use relative paths.
performance
only returns pr_lost
and feature levels or group means. Overall average would be useful too.
Now groups data and spp data are stored separately, these should be merged internally
Create functions get_dat_param()
and set_dat_param()
methods for class Zvariant
. These work with @dat.data
slot.
At least when groups have not been used initially.
Transfer most of the old Depends
packages to @import
or @importFrom
.
This is a simpler version of create_zproject()
which creates just a single variant.
create_zproject()
tries to do too much now: it can create a new Zonation project as well load existing. Create a new function load_zproject()
for cleaner and more intuitive API.
Using argument cols
while groups=TRUE
in curves()
does not work. Either warn user about this or implement correct group subsetting.
Feature names works ok for variants but get lost when analyzing results (e.g. the plots use only f1, f2, f3, etc. and featurenames(results) return this:
[1] "f1" "f2" "f3" "f4"
Use underscore "_" instead of dot or camelCase notation.
My simple Z run didn't have groups, and thus 'results' considered my results to be empty, although they were not.
Group IDs vector can be changed:
groups(variant) <- something
but trying to add new names mapping does not work as the number of categories is still being checked against the original groups-file.
Normal conditional message
statements should be enough.
Similar to groupnames<-
/ groupnames
Right now parse_bat()
will return a command string, returning a data.frame with the command elements would be more versatile
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.