Skip to content

Commit e08ca8e

Browse files
committed
Merged returns and cumulative returns into a performance section
1 parent 2cf14cf commit e08ca8e

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This project started as an RMarkdown-based analysis and evolved into a full-feat
2222
- **Sector Filtering**: Choose from Technology, Financial, Healthcare, Consumer, and Energy sectors.
2323
- **Multi-Ticker Comparison**: Select and compare multiple tickers simultaneously.
2424
- **Price Trend Visualization**: View adjusted prices with customizable moving averages.
25-
- **Daily & Cumulative Returns**: Visualize short- and long-term return patterns.
25+
- **Performance**: Cumulative growth, daily returns, return distributions, and a summary table in one view.
2626
- **Return Distribution**: Explore histograms of daily return volatility for each stock.
2727
- **ARIMA Forecasting**:
2828
- Conservative vs. Aggressive forecast modes

app.R

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,23 +184,26 @@ ui <- navbarPage(
184184
)
185185
),
186186

187-
# ── Tab 3: Returns (existing) ──────────────────────────────────────────────
187+
# ── Tab 4: Performance (daily + cumulative returns) ───────────────────────
188188

189-
tabPanel("Returns",
189+
tabPanel("Performance",
190190
mainPanel(
191-
withSpinner(plotOutput("returnsPlot"), type = 4, color = "darkturquoise"),
191+
h3("Cumulative performance"),
192+
tags$p(class = "text-muted",
193+
"Growth of $1 invested over the selected period (same tickers as Price Trend)."
194+
),
195+
withSpinner(plotOutput("cumulativePlot", height = "400px"),
196+
type = 4, color = "darkturquoise"),
192197
hr(),
193-
withSpinner(plotOutput("returnDistribution"), type = 4, color = "darkturquoise")
194-
)
195-
),
196-
197-
# ── Tab 4: Cumulative Returns (existing) ───────────────────────────────────
198-
199-
tabPanel("Cumulative Returns",
200-
mainPanel(
201-
withSpinner(plotOutput("cumulativePlot"), type = 4, color = "darkturquoise"),
198+
h3("Daily returns"),
199+
withSpinner(plotOutput("returnsPlot", height = "380px"),
200+
type = 4, color = "darkturquoise"),
201+
hr(),
202+
h3("Return distributions"),
203+
withSpinner(plotOutput("returnDistribution", height = "400px"),
204+
type = 4, color = "darkturquoise"),
202205
hr(),
203-
h4("Performance Summary"),
206+
h3("Performance summary"),
204207
withSpinner(tableOutput("performanceSummary"), type = 4, color = "darkturquoise")
205208
)
206209
),
@@ -238,7 +241,7 @@ ui <- navbarPage(
238241
)
239242
),
240243

241-
# ── Tab 6: Risk Analysis (existing) ────────────────────────────────────────
244+
# ── Tab 6: Risk Analysis ───────────────────────────────────────────────────
242245

243246
tabPanel("Risk Analysis",
244247
sidebarLayout(

0 commit comments

Comments
 (0)