I have created a contour plot using R-plotly. Unfortunately, I am unable to add title of the plot, x axis title and, y axis title on the contour plot. I would also like to incorporate the Z labels (location name/sample ID) inside the plot. can any body help me to add those? My dataframe contains x=latitude, y=longitude, chla=Z, which is collected form 6 locations. My code is below
install.packages ("plotly")
library(plotly)
df<-read.csv("contour_Jan20.csv",head=T)
df
fig <- plot_ly(df,x= df$Lat, y=df$Long, z=df$Chl,
z = ~volcano, type = "contour", contours = list(showlabels = TRUE)
)
fig <- fig %>% colorbar(title = "Concentration \n in mg/L")
fig