visualization

Smoothly animate attribute changes to ~3000 Raphael objects at once

本小妞迷上赌 提交于 2019-12-19 03:24:36
问题 UPDATED QUESTION I've updated this to be a little more succinct..: In this fiddle: http://jsfiddle.net/pX2Xb/4/ I have some raphael code that draws 3000 circles to a page. It then attempts to animate all circles at once (changes fill colour) over 10 seconds, which results in a clunky visual animation. Change the number of circles to 20 to see a much smoother animation for comparison. My questions are (a) is it possible for me to make the update to the 3000 elements smoother and (b) if so,

Z - Values for polygon (shapefile) in R

一笑奈何 提交于 2019-12-18 17:25:37
问题 my goal is to create a 3D-Visualization in R. I have a shapefile of urban districts (Ortsteile) in Berlin and want to highlight the value (inhabitants/km²) as a z-value. I have implemented the shapefile into R and coloured the value for desnity ("Einwohnerd") as followed: library(rgdal) library(sp) berlin=readOGR(dsn="C...etc.", layer="Ortsteile") berlin@data col <- rainbow(length(levels(berlin@data$Name))) spplot(berlin, "Einwohnerd", col.regions=col, main="Ortsteil Berlins", sub="Datensatz

Visualize Parse Tree Structure

萝らか妹 提交于 2019-12-18 16:46:08
问题 I would like to display the parsing (POS tagging) from openNLP as a tree structure visualization. Below I provide the parse tree from openNLP but I can not plot as a visual tree common to Python's parsing. install.packages( "http://datacube.wu.ac.at/src/contrib/openNLPmodels.en_1.5-1.tar.gz", repos=NULL, type="source" ) library(NLP) library(openNLP) x <- 'Scroll bar does not work the best either.' s <- as.String(x) ## Annotators sent_token_annotator <- Maxent_Sent_Token_Annotator() word_token

Pandas Dataframe to Seaborn Grouped Barchart

痴心易碎 提交于 2019-12-18 12:32:11
问题 I have the following dataframe which I have obtained from a larger dataframe which lists the worst 10 "Benchmark Returns" and their corresponding portfolio returns and dates: I've managed to create a Seaborn bar plot which lists Benchmark Returns against their corresponding dates with this script: import pandas as pd import seaborn as sns df = pd.read_csv('L:\\My Documents\\Desktop\\Data NEW.csv', parse_dates = True) df = df.nsmallest(10, columns = 'Benchmark Returns') df = df[['Date',

Can I plot a colorbar for a bokeh heatmap?

时间秒杀一切 提交于 2019-12-18 12:28:17
问题 Does bokeh have a simple way to plot the colorbar for a heatmap? In this example it would be a strip illustrating how colors correspond to values. In matlab, its called a 'colorbar' and looks like this: 回答1: UPDATE: This is now much easier: see http://docs.bokeh.org/en/latest/docs/user_guide/annotations.html#color-bars I'm afraid I don't have a great answer, this should be easier in Bokeh. But I have done something like this manually before. Because I often want these off my plot, I make a

Can I plot a colorbar for a bokeh heatmap?

假如想象 提交于 2019-12-18 12:27:59
问题 Does bokeh have a simple way to plot the colorbar for a heatmap? In this example it would be a strip illustrating how colors correspond to values. In matlab, its called a 'colorbar' and looks like this: 回答1: UPDATE: This is now much easier: see http://docs.bokeh.org/en/latest/docs/user_guide/annotations.html#color-bars I'm afraid I don't have a great answer, this should be easier in Bokeh. But I have done something like this manually before. Because I often want these off my plot, I make a

Relationship between plotting packages in R

谁说胖子不能爱 提交于 2019-12-18 11:48:41
问题 I am just starting out with R, and beginning to start producing charts. I am aware that there are at least three different plotting packages, the standard one, ggplot2 and lattice. Are these packages complementary, or do they cover much the same ground? If they are complementary, when do I use each? If they cover the same ground, which one should I, as a new R user, put my energy into mastering? 回答1: There are 4 plotting systems. There is standard, grid, lattice, and ggplot2. The latter two

JSON viewer for browsing APIs [closed]

那年仲夏 提交于 2019-12-18 11:28:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Does anyone have any recommendations for applications or browser plugins that make browsing and visualizing JSON APIs easy. Please

Streamgraphs in R?

倾然丶 夕夏残阳落幕 提交于 2019-12-18 10:11:47
问题 Are there any implementations of Streamgraphs in R? Streamgraphs are a variant of stacked graphs and an improvement on Havre et al.'s ThemeRiver in the way the baseline is chosen, layer ordering, and color choice. Example: Reference: http://www.leebyron.com/else/streamgraph/ 回答1: I wrote a function plot.stacked a while back that might be able to help you out. The function is: plot.stacked <- function(x,y, ylab="", xlab="", ncol=1, xlim=range(x, na.rm=T), ylim=c(0, 1.2*max(rowSums(y), na.rm=T)

Alternative to SIMILE Timeline for timeline visualization? [closed]

狂风中的少年 提交于 2019-12-18 09:54:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . So I have been having lots of fun playing with SIMILE Timeline, but unfortunately, it appears to be all but abandoned (most recently closed ticket May 2009) and riddled with memory leaks, especially when you are dynamically loading and unloading events (which is especially true in my case). I am a novice in