Improve mixed crop detection (remove Dominance) and allow flexible plot aesthetics
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- r
- Domain
- data-visualization
Research direction
Start by locating the mixed-crop detection that currently relies on Dominance and the plotting functions that assign intercropping aesthetics. Read how Plant, Genotype, and the sim/obs columns are represented and used; the issue does not name specific files or tests. Done means mixed stands can be identified and labeled with Stand_type, while users can customize aesthetics from selected columns or combinations.
Written by the indexing model from the issue text.
Description
Description
Currently, the detection of intercropping (mixed crops) in CroPlotR relies solely on the Dominance column. Graphical outputs also automatically distinguish intercropping results by both species and crop role (main vs. associated), which can lead to unnecessary complexity in the figures.
There are two points to address:
-
Detection of mixed crops
- The current approach uses the
Dominancecolumn. - A more robust method would be to detect mixed crops based on the
Plantcolumn, orPlantcombined withGenotypewhen available, by checking for different plants or genotypes simulated on the same date. - In such cases, a new column
Stand_typecould be added to the data frame with values likeMixedorMonovarietal.
- The current approach uses the
-
Graphical representation
- Currently, intercropping is automatically represented in a predefined way.
- Users may want to distinguish treatments and intercrops differently (e.g., one with colors, the other with symbols), which is difficult with the current approach.
- It would be helpful to allow the user to define colors and symbols based on the content (total or partial, e.g., if the situation name contains the treatment name) of one or several columns in
simandobs(e.g.,Plant,Genotype, or their combination).
Proposed changes
- Implement mixed crop detection based on
Plant(and optionallyGenotype) and store the result in aStand_typecolumn. - Modify plotting functions to allow users to map aesthetics (color, symbol) from arbitrary columns or combinations of columns, providing flexibility to distinguish treatments and intercrops.
- For intercropping plots, consider simplifying default aesthetics by focusing on species/genotypes and Stand_type rather than main/associated crop roles, while still allowing user customization.
- Dominant language
- R
- Stars
- 1
- Forks
- 3
- Avg merge
- 9h 41m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SticsRPacks/CroPlotR
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SticsRPacks/CroPlotR#185 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SticsRPacks/CroPlotR#180 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
SticsRPacks/CroPlotR#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 57/100
SticsRPacks/CroPlotR#181 ·
-
enhancement
Difficulty 3/5 Half a day Newbie friendliness 64/100
SticsRPacks/CroPlotR#173 ·
All issues in SticsRPacks/CroPlotR
Similar issues
-
1.7
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pharmaverse/admiral#3235 ·
Maintainers usually reply within 2 days
-
Typo: p.381Open
Difficulty 1/5 Under an hour Newbie friendliness 95/100
rmcelreath/rethinking#482 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day