Allow to add vertical lines for developmental stages

Aperta
#149 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r

Direzione di ricerca

Start from the plot method used on the object returned by get_sim (the call plot(sim)[[1]] in the issue). Trace how facets are built and why geom_vline with dev_stages data adds extra facet panels. Adjust mapping or scales so vertical lines share the existing time plots. Confirm by reproducing the four-stage example from the issue body.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Description

After a call to get_sim and to get_dev_stages for four stages, I plot the sim as curves through time (plot(sim)) followed by custom code to add four dev stages as vertical lines on the same plots:

sim <- get(sim(workspace, usm)
dev_stages <- get_dev_stages(sim, c("iamfs","ilaxs","idrps","inous"), usm)
p <- plot(sim)[[1]] + geom_vline(data=dev_stages[[usm]], aes(xintercept=Date, linetype=var)) +
      scale_linetype_manual(values = c("dotted","longdash","dashed","dotdash"))
print(p)

However, this adds four extra "facet" plots, one per dev stages.

Expected change

I would like a code as above (or similar) so that the dev stages appear as vertical lines on the same plots as plot(sim), not on extra facet plots.

Lingua principale
R
Stelle
1
Fork
3
Merge medio
9h 41m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SticsRPacks/CroPlotR

Tutte le issue di SticsRPacks/CroPlotR

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.