visualization

How do I specify domain in d3.scale.ordinal() ?

青春壹個敷衍的年華 提交于 2020-01-02 02:43:08
问题 var W = 100; var H = 200; var data = [{v:4}, {v:8}, {v:15}, {v:16}, {v:23}, {v:42}]; var x = d3.scale.linear().domain([0, max_x]).range([0, W]); var y = d3.scale.ordinal().domain([0, 1, 2, 3, 4, 5]).rangeBands([0, H]); How do I automatically enumerate the domain of data without typing it out e.g., 0, 1, 2, 3 I have tried domain(data) , and domain([0, data.length]) , but I need all the values in between. 回答1: If you want the domain of the ordinal scale to be the indexes of your data, then use

How can I visualize volume data as shown here, in MATLAB?

一个人想着一个人 提交于 2020-01-01 15:32:19
问题 My question very simply: I have a bunch of matricies, all stacked up on each other, so that I have a volume of data. I want to visualize this data, as this example image shows below: It seems to me that some degree of transparency is needed, perhaps linked to the value of each voxel. That is, the higher the value, the less 'transparent' the voxel is to things behind it. I am not sure how to even start with this. Here is some simple code that makes my data volume, so all I would like now is to

Plot with dates as X axis in R

非 Y 不嫁゛ 提交于 2020-01-01 12:25:31
问题 I maintain my journal electronically and I'm trying to get an idea of how consistent I've been with my journal writing over the last few months. I have the following data file, which shows how many journal entries ( Entry Count ) and words ( Word Count ) I recorded over the preceding 30-day period. Date Entry Count Word Count 2010-08-25 22 4205 2010-08-26 21 4012 2010-08-27 20 3865 2010-08-28 20 4062 2010-08-29 19 3938 2010-08-30 18 3759 2010-08-31 17 3564 2010-09-01 17 3564 2010-09-02 16

How to make 3D plots with categorical data in R?

不想你离开。 提交于 2020-01-01 11:37:07
问题 I've been trying to create a 3D bar plot based on categorical data, but have not found a way. It is simple to explain. Consider the following example data (the real example is more complex, but it reduces to this), showing the relative risk of incurring something broken down by income and age, both categorical data. I want to display this in a 3D bar plot (similar in idea to http://demos.devexpress.com/aspxperiencedemos/NavBar/Images/Charts/ManhattanBar.jpg). I looked at the scatterplot3d

Creating Circular flow charts (circos)

不想你离开。 提交于 2020-01-01 10:49:12
问题 I'm looking for an app to create charts like the one in the picture. I been using gephi and trying to use circos. Gephi is still on beta and circos needs a lot of configuration in order to get the chart. I'm looking for something easier that could convert a csv file into a chart like this. 回答1: In Python, you can use CircosPlot from nxviz (used to be circos). This is developed by Eric Ma on top of Matplotlib. Note that the documentation seems minimal but as Eric is not paid for this (and is a

Plotting a word-cloud by date for a twitter search result? (using R)

て烟熏妆下的殇ゞ 提交于 2020-01-01 06:34:32
问题 I wish to search twitter for a word (let's say #google), and then be able to generate a tag cloud of the words used in twitts, but according to dates (for example, having a moving window of an hour, that moves by 10 minutes each time, and shows me how different words gotten more often used throughout the day). I would appreciate any help on how to go about doing this regarding: resources for the information, code for the programming (R is the only language I am apt in using) and ideas on

javascript framework for relationship visualization [duplicate]

自作多情 提交于 2020-01-01 05:01:08
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Graph visualization code in javascript? I need to create a dynamic visualization for nodes and their relationships in Javascript. What's the best framework to use? This is what I've briefly reviewed so far: Flare - it's Flash and hasn't been updated in almost 2 years. JavaScript InfoVis Toolkit - interaction seems a little slow, maybe that's on purpose in the demos Protovis - documentation looks great, doesn't

How do you add more x axis ticks and labels to datetime axis using Python's Bokeh?

北城余情 提交于 2020-01-01 04:46:05
问题 I've been testing out Python's Bokeh, specifically the candlestick chart tools but have been unable to figure out how to add more than 5 datetime labels/ticks to my chart. Any insight would be appreciated. Here's the code: from math import pi import pandas as pd import pandas.io.data as web from bokeh.plotting import * stocks = 'FB' ####################################################### date_today = time.strftime("%x") def get_px(stock, start, end): return web.get_data_yahoo(stock, start,

Visualize network above a world map [closed]

允我心安 提交于 2020-01-01 01:08:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago . Well I have a network dataset in NodeXL and I am trying to visualize it on a world map. My dataset has Nodes with an attribute of a country Links. Unweighted connections between the nodes I tried to do it with NodeXL and exporting the file and importing to Gephi. But, I cannot

How can I position rotated x-axis labels on column chart using nvd3?

江枫思渺然 提交于 2019-12-31 17:52:28
问题 I am building a bar chart using nvd3's multiBarChart and need to adjust the position of rotated x-axis labels: var chart = nv.models.multiBarChart(); ... chart.rotateLabels(-90); I would like the column labels to not overlap the chart and be centered under each bar. I could select the labels after plotting the chart and adjust them but is there an easier way? 回答1: The best way I have found to handle this is to perform the rotation of the x-axis tick labels yourself. Why? Because NVD3 is not