Hi all,
I am trying to add another plot of Book Value per Share.
It is following this tutorial:
https://www.juliabloggers.com/using-julia-for-data-science-part-03-plotting/
this is my code:
using CSV, Dates, DataFrames, Plots, Plots.PlotMeasures, RollingFunctions
fileadhi = "./csv/IDX-Stocks/ADHI Historical Data.csv"
dfadhi = CSV.read(fileadhi, DataFrame)
dfadhi.Price .= parse.(Float64, replace.(dfadhi.Price, "," => ""))
dfadhi[!,"Change %"] .= parse.(Float64, replace.(dfadhi[!,"Change %"], "%" => ""))
dfadhi.Dates = Date.(dfadhi.Date, "mm/dd/yyyy")
tick_years = Date.(unique(Dates.year.(dfadhi.Dates)))
DateTick = Dates.format.(tick_years, "yy")
xlimsadhi = extrema([tick_years; dfadhi.Dates])
plot(dfadhi.Dates, dfadhi.Price, title="",
xticks=(tick_years,DateTick), xlims=xlimsadhi,
label="Adhi Karya (Price)", xlabel="", ylabel="")
# Set Book Value per Share
x = [04/01/2004 04/01/2008];
y = [300 400];
plot!(x,y, label="Book Value per Share")
But, the plot does not show: