Closed Fredysessie closed 2 years ago
I'll take a look tomorrow
If the data is coming back as a tibble
then we can make the ticker column a factor and make sure the data is in long format and then use ggplot(aes(group = ticker))
to plot the data with a single geom, we can make a parameter of .interactive
to return a plotly plot. Or unless you are looking specifically for quantmod plots then we should look at some working examples of those and how the data needs to be formatted to work with them.
Hi every one. Does some one has idea about how we can hide the warning message that are printing out? Thanks in advance
I don’t know have to look into it
Sent from my iPhone www.spsanderson.com
On Mar 4, 2022, at 6:45 PM, Koffi Frederic Sessie @.***> wrote:
Hi every one. how can he hide the warning message that are printing out.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
library(plotly)
library(quantmod)
library(tidyverse)
library(tseries)
library(dplyr)
library(timeSeries)
library(forecast)
BICC<- BRVM_get(.symbol = "BICC")
BICC1<-BICC
###Le code si bosse bien Travailler le code après
BICC<-as.xts(BICC[,-c(1:2)],
order.by=BICC$date_col
#,order.by=index(BICC1.a)
#, updated=Sys.time()
)
##This plot is nice i think
##It helps users to export the result
fig<- hchart(BICC)%>%
hc_exporting(
enabled = TRUE, # always enabled
filename = paste0("BICC chart")
)
fig
I don’t know have to look into it … Sent from my iPhone www.spsanderson.com On Mar 4, 2022, at 6:45 PM, Koffi Frederic Sessie @.***> wrote: Hi every one. how can he hide the warning message that are printing out. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
Please @spsanderson can we later add in our functions some posssibilities about packages :
# For example declare packages wich will be use in the function
packages <- c("dplyr","ggplot2","rlang", "tseries")
# Loop through each package
for (package in packages) {
# Install package
if (!package in installed.packages()) {
# Install it
install.packages(
package,
dependencies = TRUE
)
}
# Load package
if (!package in .packages()) {
# Load it
library(
package,
character.only = TRUE
)
}
}
I don't see why this would be necessary since any library we use needs to be declared in the description file and the import section will force its install for users. I could do an on attach that makes sure the libraries are loaded inthe session when someone does library(BRVM)
Ok i understand. Ok so it is not necessary
i'll delete the previous message. Thanks.
If the data is coming back as a
tibble
then we can make the ticker column a factor and make sure the data is in long format and then useggplot(aes(group = ticker))
to plot the data with a single geom, we can make a parameter of.interactive
to return a plotly plot. Or unless you are looking specifically for quantmod plots then we should look at some working examples of those and how the data needs to be formatted to work with them.