UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
82 stars 17 forks source link

embed isochrone plot into flexdashboard #79

Closed bernd886 closed 3 years ago

bernd886 commented 3 years ago

Hello.

I'm trying to integrate a plot of an isochrone into a flexdashboard. Sadly, simply putting in plot(ic) doesn't do the job. Does anyone know how to embed it?

Thanks in advance.

bernd

mpadge commented 3 years ago

Thanks for asking. I'm not sure what you mean by "doesn't do the job." The plot method is just a thin wrapper around mapview::mapview(), so any problems can't really be related to this package, rather to your own configuration, and potentially to htmlwidgets, which is what mapview uses for the embeddings. Basically, if you can't get plot(iso) to work, it means mapview::mapview() won't work for you either, so you need to look there for solutions, or further in htmlwidgets. Feel free to re-open if you can confirm that mapview works while plot(iso) does not, otherwise I think this issue is not related to this package, and shall close.