Good UI/UX practices and a warm-up
Sally wants to know if her portfolio is doing well, and so, you decide to build a dashboard for her.
Suppose there are only two stocks in her portfolio - Apple (AAPL) and Disney (DIS). The variables considered are open, high, low, close and volume (OHLCV).
The data have been stored as apple and disney. The helper functions are as follows:
get_name(): Get the name of each companymost_recent(): Get the most recent OHLCV valuesmost_recent_pct(): Get the most recent percentage changes in OHLCVplot_line(): Plot the trend of OHLCV values with respect to datebox_color(): Get the color to be displayed, based on whether if the given value is positive (green), negative (red), or zero (blue)
You decide to beautify the interface, to help Sally navigate the dashboard easily.
Questo esercizio fa parte del corso
Building Dashboards with shinydashboard
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio