Stock Analysis Dashboard with R Shiny and Plotly. This dashboard allows users to analyze stock data. Powered with randomForest and caret for stock prediction.
- R 4.2.3
- RStudio
- Clone the repository
git clone https://github.com/mohits-git/r-project.git
-
Open the project in RStudio
-
Install the required packages
install.packages(c("shiny", "ggplot2", "dplyr", "shinydashboard", "plotly", "zoo", "caret", "randomForest", "conflicted", "rsconnect"))
- Run the app
Open
run-r-projct.R
in RStudio and click onRun App
button
-
Create an account on shinyapps.io
-
Install the
rsconnect
package
install.packages("rsconnect")
- Set .env variables (check
.env.example
)
RS_ACCOUNT_NAME=
RS_TOKEN=
RS_SECRET=
- Deploy the app
Open
deployment.R
in RStudio and run the full script