File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,12 +186,15 @@ Berlin_add_poi <- function(
186186 }
187187 }
188188 if (! is.na(df_plot $ link_longitude [i ]) & ! is.na(df_plot $ link_latitude [i ])){
189- lines(x = c(df_plot $ x_longitude [i ], df_plot $ link_longitude [i ]),
190- y = c(df_plot $ y_latitude [i ], df_plot $ link_latitude [i ]),
191- col = fillColor , lwd = 2 )
192- lines(x = c(df_plot $ x_longitude [i ], df_plot $ link_longitude [i ]),
193- y = c(df_plot $ y_latitude [i ], df_plot $ link_latitude [i ]),
194- col = lineColor , lwd = 2 , lty = " dotted" )
189+ if (! dashed_connection ){
190+ lines(x = c(df_plot $ x_longitude [i ], df_plot $ link_longitude [i ]),
191+ y = c(df_plot $ y_latitude [i ], df_plot $ link_latitude [i ]),
192+ col = fillColor , lwd = 2 )
193+ } else {
194+ lines(x = c(df_plot $ x_longitude [i ], df_plot $ link_longitude [i ]),
195+ y = c(df_plot $ y_latitude [i ], df_plot $ link_latitude [i ]),
196+ col = lineColor , lwd = 2 , lty = " dotted" )
197+ }
195198 }
196199 }
197200 }
You can’t perform that action at this time.
0 commit comments