You can download the 'plotFin' package from github by running the following code:
install.packages("devtools") #if you don't have devtools installed
library(devtools)
devtools::install_github("gabrielebonvicini/plotFin")
1 #run this line only if R asks you if you want to updated packages dependecies
library(plotFin)
After the Third line R can ask you if you want to updates some packages which plotFin depends on. We suggest you to accomplish this request to avoid any kind of problem.
.libPaths()
and then search for the plotFin folder and delete it.install.packages(“pacman”)
library(pacman)
p_unlock()
plotFin
allows users to plot various types of financial data with just a single line of code. The package aims to streamline the process of creating plots, making it easy and efficient. Typically, creating a plot involves downloading the data, cleaning and transforming it, and then plotting it using an appropriate visualization method that effectively captures the key features of the data. However, plotFin
automates this entire process within its functions.
To illustrate this with a simple example, let's consider the plot.return()
You can select the desired stock for which you want to plot the time series of returns, specify the period you want to display, and choose the appropriate time frame. Once these parameters are set, you're good to go!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.