Consider displaying stats on plots

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
64/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
r

Direzione di ricerca

Start by listing the exported plotting functions in the CroPlotR package (look at NAMESPACE and the R/ directory) to find which ones take a subtitle or could take a new stats argument. Read how ggplot2 subtitles are currently constructed, and check the existing test suite for plot snapshots so you know how output is verified. Done looks like: a stats argument (accepting a summary() result) renders the metric string as a subtitle, documented in man/ via roxygen, with a test covering the new argument.

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

Descrizione

enhancement

Description

Consider adding support for displaying summary statistics directly on CroPlotR plots.

The idea would be to add a new argument (e.g. stats) to the relevant plotting functions. This argument could typically receive the output of a summary() function and the statistics would then be displayed along with the plot.

Two approaches could be considered:

  1. Display statistics inside the plotting area
  • This would provide a compact and direct visualization.
  • However, it may be difficult to automatically adjust the font size and positioning to avoid overlapping with the data.
  1. Display statistics as a subtitle
  • This would avoid interfering with the plotting area.

The second option may therefore be preferable.

Example

A possible output could be a plot with a subtitle such as:

RMSE = 0.42 | rRMSE = 8.3% | R² = 0.91 | Bias = -0.05

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.