Questions tagged [data-visualization]

Data visualization is the study of the visual representation of data. Maps and charts are the most common types of data visualization, but there are many more.

Data visualization (or data visualisation) is the creation and study of the visual representation of data, and is closely related to information graphics, information visualization, scientific visualization, and statistical graphics.

In recent years, data visualization has become an active area of research, teaching and development.

There are different approaches on the scope of data visualization. One common focus is on information presentation. From a computer science perspective data visualization is comprised of:

  • Visualization algorithms and techniques
  • Volume visualization
  • Information visualization
  • Multiresolution methods
  • Modelling techniques
  • Interaction techniques and architectures
  • Infographics

There are several open source libraries that can be used to produce data visualizations including and for Python and for JavaScript.


Useful links


Related tags

7470 questions
77
votes
2 answers

Fix Node Position in D3 Force Directed Layout

I want some of the nodes in my force-directed layout to ignore all forces and stay in fixed positions based on an attribute of the node, while still being able to be dragged and exert repulsion on other nodes and maintain their link lines. I…
Elijah
  • 4,609
  • 3
  • 28
  • 36
72
votes
3 answers

How to access the DOM element that correlates to a D3 SVG object?

I'm trying to learn D3 by experimenting with one of their basic bubblecharts. First task: figure out how to drag an bubble and have it become the topmost object while it's being dragged. (The problem is getting D3's object model to map onto the DOM,…
XML
  • 19,206
  • 9
  • 64
  • 65
65
votes
7 answers

What techniques exists in R to visualize a "distance matrix"?

I wish to present a distance matrix in an article I am writing, and I am looking for good visualization for it. So far I came across balloon plots (I used it here, but I don't think it will work in this case), heatmaps (here is a nice example, but…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
53
votes
1 answer

ggplot scale color gradient to range outside of data range

I am looking for a way to stretch a color gradient between two values and label the legend, regardless of the range of data values in the dataset. Essentially, is there a functional equivalent to ylim() for color gradients? Given code which plots…
metasequoia
  • 7,014
  • 5
  • 41
  • 54
50
votes
2 answers

Network chord diagram woes in R

I have some data similar to the data.frame d as follows. d <- structure(list(ID = c("KP1009", "GP3040", "KP1757", "GP2243", "KP682", "KP1789", "KP1933", "KP1662", "KP1718", "GP3339", "GP4007", …
Crops
  • 5,024
  • 5
  • 38
  • 65
50
votes
9 answers

How to make a sunburst plot in R or Python?

So far I have been unable to find an R library that can create a sunburst plot like those by John Stasko. Anyone knows how to accomplish that in R or Python?
dmvianna
  • 15,088
  • 18
  • 77
  • 106
49
votes
4 answers

How do I visualize a matrix with colors and values displayed?

I want to create images like this from a double precision matrix using MATLAB. Sample image: http://twitpic.com/2xs943
Piji
  • 685
  • 1
  • 8
  • 13
48
votes
3 answers

How to plot 3D scatter diagram using ggplot?

I tried to use the plotly package, but it is not working in my case at all. The ggplot package is working for 2D plots but it is giving an error when adding one more axis. How to solve this issue? ggplot(data,aes(x=D1,y=D2,z=D3,color=Sample)) + …
R June
  • 655
  • 1
  • 6
  • 8
43
votes
3 answers

How to hide legend with Plotly Express and Plotly

I am trying to learn Plotly by firstly creating a simple bar chart in Plotly Express and then updating it with Plotly to finesse it. I would like to hide the legend. I am trying to update the original figure by hiding the legend, and I can't get it…
krazykrejza
  • 579
  • 2
  • 6
  • 12
43
votes
1 answer

large graph visualization with python and networkx

I am having trouble with large graph visualization in python and networkx. The graph is wish to visualize is directed, and has an edge and vertex set size of 215,000 From the documenation (which is linked at the top page) it is clear that networkx…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
42
votes
3 answers

Add legend to geom_line() graph in r

I've been trying to add legend to my ggplot, but failed miserably. I tried the function scale_colour_manual(), but the legend doesn't show up. ggplot()+ geom_line(data=Summary,aes(y=Y1,x= X),colour="darkblue",size=1…
ausworli
  • 479
  • 1
  • 4
  • 10
39
votes
2 answers

How to plot with a png as background?

I made a plot with a 3 million points and saved it as PNG. It took a few hours and I would like to avoid re-drawing all the points. How can I generate a new plot that has this PNG as a background?
Aleksandr Levchuk
  • 3,751
  • 4
  • 35
  • 47
38
votes
2 answers

Is there way in ggplot2 to place text on a curved path?

Is there a way to put text along a density line, or for that matter, any path, in ggplot2? By that, I mean either once as a label, in this style of xkcd: 1835, 1950 (middle panel), 1392, or 2234 (middle panel). Alternatively, is there a way to have…
byteit101
  • 3,910
  • 2
  • 20
  • 29
38
votes
3 answers

graph rendering in python (flowchart visualization)

to visualize a sequence of nodes connected by edges encoded in python. looking for a python library to visualize such graph data. either a library written in python or python bindings, is ok (i am aware of Visustin, but looking for alternatives)
eWizardII
  • 1,916
  • 4
  • 32
  • 55
36
votes
2 answers

how to hide plotly yaxis title (in python)?

Editing: The following example from Plotly for reference: import plotly.express as px df = px.data.gapminder().query("continent == 'Europe' and year == 2007 and pop > 2.e6") fig = px.bar(df, y='pop', x='country',…
ZKK
  • 627
  • 1
  • 10
  • 16