timelyportfolio / RBioFabric

An R implementation of the BioFabric network visualization tool
7 stars 1 forks source link

more zoom! #1

Open rmflight opened 9 years ago

rmflight commented 9 years ago

If I load in a moderately sized network (343 nodes, 3783 edges), with the default widget size the amount of zoom that is capable is pretty puny. It is hard to read the labels, and selecting anything is hard. However, if I increase the size of the htmlwidget object (say 2400px by 2400px), then I can zoom in really well, so I'm guessing there is a zoom limit based on the size of the div object itself.

Can that limit be increased or removed entirely?

rmflight commented 9 years ago

I am working on an example that demonstrates this exact problem, btw.

rmflight commented 9 years ago

You can see this effect where I've loaded up the Yeast high quality network that has 3025 nodes and 6888 edges.

In the default size the amount of zoom is not enough to easily interact with individual nodes.

However, when I up the size to something ridiculous like 3000px by 3000px, if you zoom right in you can easily separate the edges, and work with the nodes.

Obviously a network this size needs a bigger viewport than the default just to be able to work with it period, but it doesn't seem like the zoom factor should be a property of the viewport size. At least it doesn't seem like it should to me. I may be persuaded otherwise, however.

timelyportfolio commented 9 years ago

@rmflight that's a lot of nodes. I added the zoomMin and zoomMax as arguments to biofabric_htmlwidget. I'll probably rethink how to supply these options as I rethink/add interactivity. Thanks so much for using it and thanks for the example.