r-plotly Questions
3
Solved
Is it possible to format hoverlabel so that the background color is transparent & it's possible to see the plot through the labels?
I can set it to a solid color by e.g. hoverlabel = list(bgcol...
2
Solved
I am trying to figure out which traces the user hides from a scatter plot by means of deselecting them in the interactive legend of plotly.
I have read this SO post, and the similar questions lin...
Jagir asked 22/2, 2019 at 8:11
3
Solved
Here's what I have, so far:
f1 <- list(
family = "Arial, sans-serif",
size = 25,
color = "white"
)
f2 <- list(
family = "Old Standard TT, serif",
size = 14,
color = "black"
)
a <- ...
2
accumulate_by <- function(dat, var) {
var <- lazyeval::f_eval(var, dat)
lvls <- plotly:::getLevels(var)
dats <- lapply(seq_along(lvls), function(x) {
cbind(dat[var %in% lvls[seq(1, ...
3
Solved
I am attempting to use the plotlyProxy() functionality (Documented here) to allow users of a shiny application to add and remove traces with minimal latency.
Adding traces proves to be relatively ...
1
Solved
I work with Plotly and I want to put four charts in the same picture. Below you can see data
library(dplyr)
library(plotly)
df<-data.frame(
Years = rep(2010:2020,len=22),
Tax = rep(c("PI...
1
Solved
Desired Outcome
I would like to be able to click a point in my plotly::ggplotly() graph within my {shiny} app and then display some info about that point in a separate output below.
MRE
In this sim...
2
Solved
I would like to disable the plotly legend selection from the server side using the R Plotly. We see here that it is possible to achieve this on plotly javascript using the following,
gd.on('plotly...
3
Solved
3
Solved
On a R markdown file, does someone know why out.width,out.height,figure.width and figure.height parameters doesn't change plotly charts size when producing a pdf file? ( I precise that such paramet...
Comprehensible asked 4/10, 2018 at 14:19
3
Solved
I have an Rmarkdown with a simple scatter plot (a map for instance), and I would like users to be able to provide some arbitrary x and y coordinates via an input and have those plotted on the graph...
Ternary asked 4/3, 2022 at 15:3
1
Solved
I would like to customize what I see in plotly when I hover on a bar.
Please have a look at the reprex at the end of the post.
I had a look at
How to set different text and hoverinfo text
https://c...
2
Solved
Consider the plot produced by the following reprex. Note that the ggplot has sensible legends, while in plotly, the legend is heavily duplicated, with one entry for each time the same category (&qu...
2
Solved
I'm fairly new to shiny and trying to push over a pie chart made in plotly.
Upon clicking runapp the html rendered only contains the Title i.e. "Plotly"
The code is as under
UI
library(sh...
Darton asked 21/4, 2017 at 14:12
2
Solved
Plotly allows you to display text fields when hovering over a point on a scatterplot. Is it possible to instead display an image associated with each point when the user hovers over or clicks on it...
3
The below code generates two plots using ggplot and ggplotly. Despite of using the layout() to ggplotly the legend is still at the right side. The legend is required to be at the bottom. Could anyo...
1
This is a question following up on this answer by @klopetx. I have searched for how to update several data attributes in a single arg in Plotly in the official docs. It is possible in Python and th...
1
Solved
Please have a look at the reprex at the end of the post.
Essentially, I create a very simple ggplot2 visualization inside shiny.
When I call ggplotly on it in order to get a plotly interactive visu...
2
I am new to r-plotly and trying to figure out how to handle clicks which are not on the data. It seems that using event_data("plotly_click") I get events that are on points from the data, but so fa...
Uriia asked 17/5, 2019 at 20:24
3
Solved
In an Rmarkdown html document, how does one select a default value for a crosstalk::filter_select dropdown that will work with plotly plots? E.g., in the example below, to have just group 'a' selec...
Socialite asked 6/10, 2020 at 22:20
0
When I convert a ggplot with two separate legends to plotly (using ggplotly), the two legends merge. Does anyone know how to prevent this?
library(tidyverse)
library(plotly)
df <- data.frame(dat...
2
Solved
I'm trying to make an sunburst diagram using Plotly via R. I'm struggling with the data model required for the hierarchy, both in terms of conceptualizing how it works, and seeing if there are any ...
Synovia asked 7/8, 2019 at 13:17
2
Solved
How do I disable the "Double click on legend to isolate one trace" interaction in plotly for R? I want a double click to just have the effect of two clicks.
Here is an example on how to do this wi...
2
Solved
I've got a plot like the one below, where I need to display a plot title and some long facet labels. In ggplot2, it looks just fine.
Reprex:
library(ggplot2)
library(stringr)
library(plotly)
iri...
Norma asked 9/4, 2020 at 13:58
2
I am not sure if this is possible, but here is what I would like to do. I would like to update the data in a plotly plot by selecting from a dropdown menu.
As a simple example, let's assume I have...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.