Add interactivity for geom_pcp
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- plotly, r
- Domain
- data-visualization
Research direction
Start with the geom_pcp and ggplotly entry points described in the issue, and compare the proposed highlight_key approach with the ggpcp pipeline using pcp_select, pcp_scale, and pcp_arrange. Done means a parallel coordinate plot supports selecting one or more lines and highlights the entire selected line interactively.
Written by the indexing model from the issue text.
Description
It would be elegant to be able to create interactive parallel coordinate plots with plotly layered on the ggpcp library. Users should be able to select a line (or lines) and the entire line would highlight.
library(ggplot2)
data(mtcars)
mtcars_pcp <- mtcars |>
dplyr::mutate(
cyl = factor(cyl),
vs = factor(vs),
am = factor(am),
gear = factor(gear),
carb = factor(carb)
) |>
pcp_select(1:11) |> # select everything
pcp_scale() |>
pcp_arrange()
base <- mtcars_pcp |> ggplot(aes_pcp())
# Just the base plot:
base + geom_pcp()
# Ideally this would allow lines to be selected
ggplotly()
# Or something like:
highlight_key(mtcars) |> ... (ggplot2 code) |> ggplotly()
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/plotly.R
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
save_image Error Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Similar issues
-
area:livestock bug priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
eduaguilera/whep#1313 ·
-
rules
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
The-Strategy-Unit/nhp_reskit#229 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
epiforecasts/EpiNow2#1547 ·