Comments (17)
Also added some lattice examples (from this book ) and modelled after these examples in rCharts+polycharts http://timelyportfolio.github.io/rCharts_lattice_book/polycharts_versions/gallery/figure1_02.html
from rbokeh.
This is great! I'm traveling and in meetings - will get on and make more comments on this and others in a bit.
from rbokeh.
These are great examples. I'm wondering if we should set up a gallery type of thing. I think something like bl.ocks.org would be cool - a collection of gists that generate a gallery. What do you think? Or going through the lattice and ggplot book examples might make for a good set of blog posts.
This exercise can also serve the purpose of helping us make note of shortcomings and can be the source of new issues. For example, making a GridPlot is a little too cumbersome right now.
from rbokeh.
Yes!! You can absolutely use this:
http://asbcllc.com/blog/2015/february/happy_valentines_day/
Have more coming too
Alex Bresler
ASBC LLLC
asbcllc.com
917-455-0239
[email protected]
@abresler
On Feb 13, 2015 12:26 PM, "hafen" [email protected] wrote:
These are great examples. I'm wondering if we should set up a gallery type
of thing. I think something like bl.ocks.org would be cool - a collection
of gists that generate a gallery. What do you think? Or going through the
lattice and ggplot book examples might make for a good set of blog posts.This exercise can also serve the purpose of helping us make note of
shortcomings and can be the source of new issues. For example, making a
GridPlot is a little too cumbersome right now.—
Reply to this email directly or view it on GitHub
#5 (comment).
from rbokeh.
@abresler, that's beautiful :)
from rbokeh.
Ok, here are a couple more examples.
https://gist.github.com/timelyportfolio/60c9676395f541d1d743
from rbokeh.
Cool! Here's an example of how to use some of the fine axis control in your last example:
p %>%
ly_points(
as.character(source), as.character(target), MisLinks, size = 3, color = value
) %>%
x_axis(major_label_text_font_size = "6pt", major_label_orientation = 90) %>%
y_axis(major_label_text_font_size = "6pt")
from rbokeh.
Need latest for that to work.
from rbokeh.
works great. Love it.
from rbokeh.
When I click on p1 a new tab opens with the original graph. The old tab has p1 with the point I clicked on highlighted. Is this the expected behavior? Shouldn't I stay on the same tab and see only the point I clicked on highlighted?
from rbokeh.
Try to reinstall to get newest version that disables tap tool
from rbokeh.
@kaneplusplus, none of these examples should have the tap/click tool. I accidentally made every plot have taptool by default in a version from earlier today. If you install the latest, you should not see tap behavior anymore.
I need to add an example for using click to open url - will do this soon.
from rbokeh.
What @timelyportfolio said :)
from rbokeh.
OK, thanks.
from rbokeh.
@kaneplusplus, since I know tap is an important use case for you, here's an example. The basic idea is to have a variable with the url you want and then set url="@variable_name"
. Technically you should be able to do something like url="http://something/@variable_name"
but I don't quite understand all the details yet.
## if not installed:
# devtools::install_github("hafen/housingData")
library(housingData)
library(dplyr)
a <- housing %>%
filter(time == max(housing$time) & state == "MA") %>%
filter(!is.na(medListPriceSqft)) %>%
mutate(rank = rank(medListPriceSqft)) %>%
mutate(url = sprintf("http://www.zillow.com/homes/%s_rb/",
gsub(" ", "-", paste(county, state))))
figure(title = "Real Estate Prices for Counties in MA, 2014-03-01",
title_text_font_size = "11pt") %>%
ly_points(rank, medListPriceSqft, data = a,
hover = c(state, county, medListPriceSqft), url = "@url")
from rbokeh.
@hafen Nice! Thanks for the example.
from rbokeh.
For now you can add these examples in an examples folder of this repo. The examples can then be called from R.
from rbokeh.
Related Issues (20)
- grid_plot width is not dynamic HOT 2
- Update for Bokeh 1.0 HOT 12
- Can I serve rbokeh apps with rbokeh server? HOT 2
- Enable Click Policy HOT 1
- ly_multi_line doesn't render any lines HOT 1
- legend_orientation in figure()
- Hover doesn't work when x and y is flipped HOT 5
- Rbokeh barplot x-axis reordered by y-axis value HOT 4
- indefinite loading time of some plots HOT 5
- Functionality that mimics "span" in bokeh HOT 1
- Importing plot from ggplot2 directly into rbokeh?
- Legend outside graphs? Or next to graphs? HOT 1
- could not find function "ly_abline" HOT 8
- Legend Title
- rbokeh has been removed from CRAN HOT 8
- parameter "image_url" in ly_image_url() not work for local image HOT 2
- lname seeems to prevent glyphs from working HOT 2
- rbokeh compatibility with crosstalk? HOT 1
- LaTeX or expressions in figure labels HOT 6
- Archive this repository? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbokeh.