Coder Social home page Coder Social logo

csiro-crop-informatics / granular Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 578 KB

A wrapper and shiny app for mixdist specifically applied to starch granule distributions

License: GNU General Public License v3.0

R 58.29% CSS 3.16% HTML 15.99% JavaScript 22.56%
rstats

granular's People

Contributors

alexwhan avatar raj-gaire avatar

Watchers

 avatar  avatar  avatar

Forkers

emitanaka

granular's Issues

estimate peak heights

Now that we can input the peak x values, when mixdist is run it would be useful to estimate the peak heights for each distribution and use them to calculate prior weights for each underlying dist. Can just get proportion for each peak_val. Need to work out how that matches a weight.

modularise javascript

all the javascript code is in html and the variables are global. change the javascript so that it is more modular.

zoom - axis and line-hover values

The values returned from the line-hover functions are incorrect (in terms of matching the underlying data). It's probably due to the transformation that's happening with the zooming, which is also affecting the axis after brushing.

@Seanli52 could you have a look at that?

Make into package

Will be more maintainable and distributable as a package. Also... documentation!

selecting example data creates new svg, doesn't remove paths

With the new functionality to select example data, multiple datasets can be passed to the browser as different selections are made. each time an example set is chosen, a new svg is added in the browser. The paths for the new data are added on top of the existing ones.

This needs to be reconfigured so that the old graph is removed before the new one is drawn.

@Seanli52 or @rajgaire would you be able to have a look?

handle list columns for size and dist

Tidy dataframes will be the easiest default data structure. Having the size and distribution data stored as a list column could be useful. Checking for whether the column is list type and unlisting if necessary should be straightforward

lines extend too far right after zoom

The lines from samples (inst/shiny/www/index.html) are correct (they stop at the end of the x axis) prior to zoom, but they extend too far afterwards

Change processing format

At the moment, a dataframe is processed in a loop, so that only the full results are visible to shiny.

Would probably be neater to structure in a list, so that each sample is an element, and the output is built up as the list is iterated over. The output can then be visible in the browser as the analysis is happening.

change mixDist() so it deals with vector rather than df

mixDist currently takes a dataframe as its second argument. Would work better when iterating with list if this was just a vector, then there is no looping in the function. Also change argument order so dist data is first (helps with %>%)

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.