menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

flowmap.blue

Geographic flow map visualization with flowmap.blue

Channels
Team

flowmap.blue with Shiny App

August 9, 2020 at 11:43am

flowmap.blue with Shiny App

August 9, 2020 at 11:43am
Hi, Thank you so much for this great dynamic visualization. I am designing the population flow in Spain during the pandemic using a Shiny App. Inside the App flowmapblue object is generated but while displaying them in the Shiny UI interface I want to customize the default template. I have also tried saving each object as HTML widget and then rendering them in the Shiny interface. But in each case, the Shiny interface is getting updated by the default JS of flowmapblue object. For example, the whole Shiny UI is converted to BLUE Background. I checked in your GitHub page about the control of the flowmapblue template, but couldn't find any good option. I am quite new in this domain. Can you please suggest a few options on how to control the default display template when I am trying to embed it into Shiny App. Or even while saving as an HTML widget how can I customize the default template, will be also helpful. Thanks in advance.

August 9, 2020 at 3:21pm
Hello! I don't know much about Shiny, will have to take a look at it. But what exactly do you need to customize?
Hi, Thank you so much for your prompt reply. I am attaching one screenshot,
  1. I am not getting the settings option on the left corner of my output. How can I get that? I searched but couldn't identify the parameter to activate it. Can you please help me with that.
  2. The Mapbox plot with the flow map is coming fine. But the background of the plot is always coming BLUE, marked as (2). I can't control it. Can you please share some examples where I can check how the background color is changed.
  3. Another query is how can I change the line type in the flow map plot. I am using the simple function flowmapblue(locations, flows, mapboxAccessToken, clustering = TRUE, darkMode = FALSE, animation = TRUE) The result is of class "flowmapblue" "htmlwidget".Can you please guide me how can I customize this final output having the above mentioned 1 and 2 points. Thanks in advance.

August 11, 2020 at 7:13am
Ok, I see now. This is not yet supported in the R version. I will have to add it. Will let you know. Or you can submit a PR, it shouldn't be very difficult to add new parameters to the function.

August 13, 2020 at 10:43pm
Hi, Sorry for the late response. Thank you for clearing it out. I will try to submit a PR. Thanks again.