All Questions
26
questions
1
vote
0
answers
169
views
How do I remove deckgl legend on shiny dashboard?
I am running into an issue with a shiny dashboard that I am trying to create, wherein updating a deckgl plot causes a new legend to append into the view as opposed to replacing the old legend. The ...
0
votes
1
answer
697
views
Toggling Between Map Legends in Leaflet using Shiny
I am currently trying to code a leaflet legend in shiny so that the corresponding legend changes as I toggle between the maps.
I have read this blog post: https://medium.com/ibm-data-ai/layer-specific-...
1
vote
1
answer
277
views
How to create a common legend for graphs across multiple tabs in Shiny dashboard?
I wish to have the same legend for 5 graphs. 2 graphs are on the 1st tab of a Shiny app and 3 graphs are on the 2nd tab.
I have made an attempt to add a legend but the legend is taking too much space ...
0
votes
0
answers
69
views
How to create a legend with a function/ggplot
Hello everyone I have a question regarding a legend, I do not understand how I get to a legend. I also want the colors to be the same as the legend. Does anyone have an idea?
Thank you
output$...
0
votes
0
answers
153
views
Change axis labels for plot legend
I have a Shiny script that makes a plot with a varying number of lines depending on what is selected in a checkbox. This variable is called "Locus" and has the following options:
P1_N
P2_N
...
4
votes
0
answers
831
views
How to change legend text formatting in Leaflet in R?
I've created a leaflet map and I'm trying to figure out how I can change the formatting of the legend labels. I currently have a gradient color palette to represent the data, with a set of discrete ...
0
votes
0
answers
242
views
ggplot heatmap legend scale for multiple heatmaps in a shiny app
I have a shiny app, where I can generate 3 heatmaps depending on the selectinput field. The legend of heatmap 1 shows all 4 discrete variables "1" = "very good", "2" = &...
0
votes
0
answers
238
views
About adding legend in R shiny
Here is part of my code after getting a table named full,
full <- full %>% pivot_longer(cols = -num)
p <- ggplot(full, aes(x=num,y=value,group=name,color=name,linetype=name))+
...
0
votes
1
answer
101
views
Draw 3 small squares like a legend in fluidRow() in RShiny
I am plotting a stacked bar chart using plot_ly() and I need to display the legends as a default below the plot in a fluidRow().
I am aware that we can plot legends using layout in plotly. But I need ...
0
votes
1
answer
1k
views
Create dynamic legend on R Shiny Leaflet Maps, Error: 'colors' and 'labels' must be of the same length
I have been struggling in creating a dynamic maps legend in R shiny Leaflet Maps.
The idea is to have a template code so whenever the data change, the map and its legend will follow. The coordinate is ...
2
votes
1
answer
595
views
Is it posible to close / open legend or overlayGroups/legend from leaflet map R on shiny Server?
I am trying to hide OverlayGroups in R but I don't know how to that. What I am trying to do is to hide it when it is not used. If possible have a button to click it and then It will minimize overlay ...
0
votes
1
answer
342
views
R code help needed for map legend not in the right position
I am learning shiny R and am trying to run an example from this page on R studio:
https://shiny.rstudio.com/tutorial/written-tutorial/lesson5/
I am trying to run the example below, which does not ...
0
votes
1
answer
397
views
The legend colors are not perfectly similar to color of polygons
I am using the leaflet function to create an interactive map within the shiny framework. Everything looks great except the legend. The colors of the legend are somewhat faded and therefore not ...
0
votes
1
answer
2k
views
Shiny creating a reactive legend
I am following a solution given in R shiny Aesthetics must be either length 1 or the same as the data (8): y for that annoying problem which I have happily fixed.
The next issue I want to solve is ...
2
votes
1
answer
1k
views
How to change legend text color in leaflet for R?
I created a leaflet map in R Shiny. The problem is that the legend text color is very bright. I need to change the text color but don't find any option in leaflet legend for changing the legend text ...