The result of file Shiny_001.R

The result of file Shiny_002.R

The cause of the different results of the 2 files is because:

1. The different between 2 files stock_analyzer_function (use for shiny_001.R) and stock_analyzer_function(1) (use for shiny_002.R)

  • 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

  • When the chart are showing, the note haven’t showed detaied note about moving average 20,50, adjusted. It just shows us 3 entry “legend”. We need to add code about how to calculate moving average 20,50, adjusted

2. The different between 2 files shiny_002.R and shiny_001.R

  • 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.