Closed jroachell15 closed 3 weeks ago
@isomemo There are two left open points from above
Regarding:
we discussed today that default ranges should only be changed to 0-100% for
<*>
Currently it is possible to export data of estimates and uncertainties under Summary statistics: This file could be used to create a smoothed plot with PlotR.
Please let us discuss next time which way to take respecting the effort!
@arunge it would be more efficient to discuss this during our next meeting!
@isomemo As discussed, I added the option to draw a smooth line (1, 2) with version Resources 24.07.0 using the method
parameter of ggplot2::geom_smooth()
.
However, I had to add the option to select a "smoothing method" and needed to set "Linear Model" as default value. When loading the examples, running the model and drawing the plots, there are several plots containing only two or three data points. The "Locally Weighted Scatterplot Smoothing" (method = "loess"
) requires more than 3 data points and might fail for very few data and a too low value of smoothing (span
) which always leads to warnings that pop up.
Please let me know, if you have questions or remarks!
@arunge if it fails due to low data can we add our own error message?
@isomemo This I am already doing:
@arunge perfect! thanks!
@isomemo Ok, thanks. Then I am closing here.
For the app ReSources, the data tables to be displayed now to be stored in GitHub (fixed location/name but updatable) as csv files. The pending list will be populated from a text file or by reading a directory.
If, a covariate model is defined with a numeric variable make the option available to display a smoothed plot showing a credible interval range like in PlotR. (code from this not to be used and here mentioned only as an example). This is done under “Output” -> “Display by” If under the option above the user selects a numeric variable then under “Select plot type” the user can select “Smoothed plot”. The credible ranges are selected in the scroll inputs at the bottom left. The figure below shows the input for a numeric variable and how it is selected:
To exemplify add the inputs/selection above to the “Five_source_example_model”. Run the model! The options within the red rectangle allow the user to select different ways of displaying the results for covariates and their interactions. These are shown as credible intervals (box plots) or histograms, for instance. The option to show these box plots/histograms/ results for numeric categories should have been included but this is missing! They should be added! In addition, one can select an option to have the numeric inputs in the x-axis and estimates in the y-results as smoothed graphs. This implies that ggplot2 should be used (options: loess; ksmooth, or gam). User gives as inputs the x values and the y credible intervals. The user can then select to display the different estimates for the numeric covariates in a similar manner as currently implemented for covariate. Example from PlotR assuming that one adds two dietary estimates:
The differences between the implementation in PlotR (only given as an example) and the future ReSources implementation:
Other Resource tasks: