File stock_analyzer_function for shiny_001.R just only get name and symbol of 500 leading publicly traded companies in the US. Howerver, File stock_analyzer_function for shiny_002.R, it add indexes about moving average 20,50. Beside that, these code use to design componens of the chart.
It put on some notes on the chart such as date, Value, legend follow the line stock,(gather function) and colour of them by ggplot function. Function “scale” help measure scales for the x and y axes. It also add title for the chart “Adjusted share price” by using labs function
File stock_analyzer function(1) (use for shiny_002.R) has a new entry. That is “Analyst Commentary”. It run by compare moving average 20,50 and if-else statement.
It still some error that need Improve for app shiny_002: index on chart
In line 10 of file shiny_002.R we can see that it take data of stock Apple (AAPL) in Five years by function get_stock_data. It helps file stock_analyzer_function(1) have figure to show on the chart.
In the Application UI section. Shiny_002.R added label “Stock List (pick one stock to analyze)”, and this helps improve aesthetics of the app. Futhermore, pickerOptions function help Users can find stock easily.
In ANALYST COMMENTARY section, it combine with stock_analyzer function(1) to create comment from data
There are some suggests to improve: data, download analyze symbol
The chart just show to us stock of Apple company. It doesn’t show other stock, so we need put on codes about get data from other company. Beaside that, download analyze symbol can not download, because the code just write how to appear symbol, we need to add some code to download.