Coder Social home page Coder Social logo

add more examples about rbokeh HOT 17 CLOSED

bokeh avatar bokeh commented on May 19, 2024
add more examples

from rbokeh.

Comments (17)

timelyportfolio avatar timelyportfolio commented on May 19, 2024

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.

hafen avatar hafen commented on May 19, 2024

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.

hafen avatar hafen commented on May 19, 2024

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.

abresler avatar abresler commented on May 19, 2024

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.

hafen avatar hafen commented on May 19, 2024

@abresler, that's beautiful :)

from rbokeh.

timelyportfolio avatar timelyportfolio commented on May 19, 2024

Ok, here are a couple more examples.

https://gist.github.com/timelyportfolio/60c9676395f541d1d743

from rbokeh.

hafen avatar hafen commented on May 19, 2024

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.

hafen avatar hafen commented on May 19, 2024

Need latest for that to work.

from rbokeh.

timelyportfolio avatar timelyportfolio commented on May 19, 2024

works great. Love it.

from rbokeh.

kaneplusplus avatar kaneplusplus commented on May 19, 2024

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.

timelyportfolio avatar timelyportfolio commented on May 19, 2024

Try to reinstall to get newest version that disables tap tool

from rbokeh.

hafen avatar hafen commented on May 19, 2024

@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.

hafen avatar hafen commented on May 19, 2024

What @timelyportfolio said :)

from rbokeh.

kaneplusplus avatar kaneplusplus commented on May 19, 2024

OK, thanks.

from rbokeh.

hafen avatar hafen commented on May 19, 2024

@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.

kaneplusplus avatar kaneplusplus commented on May 19, 2024

@hafen Nice! Thanks for the example.

from rbokeh.

MySchizoBuddy avatar MySchizoBuddy commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.