Hello, so I am having trouble creating a graph that DOES NOT FILL GAPS. I have 2+years of data for this project and 6 sites. There are a lot of “NA” values in the data set and plotly automatically connects them.
I’ve tried adding connectgaps=FALSE into my code and my R doesn’t recognize it as a function.
I’ve tried replacing the “NA” values with “NaN” and still nothing changed.
Also I’ve read though https://plot.ly/r/line-charts/#connect-data-gaps and I do not understand why that graph has gaps and mine doesn’t.
Time | Q1T | Q2T | Q3T | Q4T
xxx | NA | NA | NA | NA
xxx | # | # | NA |#
xxx | # | # | # | NA
xxx | # | # | # | #
Thank you
Lancer_Cistern_Graph <- plot_ly(x=Lancer$DateTime, y=Lancer$Q1T, name='Q1T', mode='line', type='scatter') %>%
add_trace(y=Lancer$Q2T, name='Q2T', mode='line') %>%
add_trace(y=Lancer$Q3T, name='Q3T', mode='line') %>%
add_trace(y=Lancer$Q4T, name='Q4T', mode='line') %>%
layout(title="Lancer Cistern T", xaxis=list(title= "Time"), yaxis=list(title= "TEMP (F)")) %>%
rangeslider(Lancer_Cistern_Graph)