muschellij2 / neuroshiny

Example Shiny with ggneuro
0 stars 0 forks source link

issue with extracting panelvars #1

Open rb643 opened 7 months ago

rb643 commented 7 months ago

This is a great little workaround to make these figures interactive by getting the mouse click to update the xyz coordinates. Unfortunately I don't seem to be able to get these to update and have so far traced this back to my pc dataframe variable not containing a panelvar1 variable... Only things in there are below, am I missing something earlier on?

$x
[1] 0.2647634

$y
[1] 0.4789063

$coords_css
$coords_css$x
[1] 237

$coords_css$y
[1] 191

$coords_img
$coords_img$x
[1] 474

$coords_img$y
[1] 382

$img_css_ratio
$img_css_ratio$x
[1] 2

$img_css_ratio$y
[1] 2

$mapping
named list()

$domain
$domain$left
[1] -0.04

$domain$right
[1] 1.04

$domain$bottom
[1] -0.04

$domain$top
[1] 1.04

$range
$range$left
[1] 275.52

$range$right
[1] 978.88

$range$bottom
[1] 554.2

$range$top
[1] 195.8

$log
$log$x
NULL

$log$y
NULL
rb643 commented 7 months ago

ps: my print(curr_xyz) only a returns a list of 3 [1] 128 128 96

muschellij2 commented 7 months ago

See https://github.com/muschellij2/papayaWidget instead