Improve mixed crop detection (remove Dominance) and allow flexible plot aesthetics
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- r
- Área
- data-visualization
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- R
- Estrellas
- 1
- Forks
- 3
- Merge medio
- 9 h 41 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SticsRPacks/CroPlotR
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SticsRPacks/CroPlotR#185 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
SticsRPacks/CroPlotR#180 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
SticsRPacks/CroPlotR#186 ·
-
Error is raised if not any var in data.frames in sim_list of a stics_wrapper returned objectAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 57/100
SticsRPacks/CroPlotR#181 ·
-
enhancement
Dificultad 3/5 Medio día Aptitud para principiantes 64/100
SticsRPacks/CroPlotR#173 ·
Todos los issues de SticsRPacks/CroPlotR
Issues similares
-
1.7
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pharmaverse/admiral#3235 ·
Los mantenedores suelen responder en 2 días
-
Typo: p.381Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
rmcelreath/rethinking#482 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día