parallel-coordinates

Parallel Coordinates plot in Matplotlib

给你一囗甜甜゛ 提交于 2019-12-28 07:41:25
问题 Two and three dimensional data can be viewed relatively straight-forwardly using traditional plot types. Even with four dimensional data, we can often find a way to display the data. Dimensions above four, though, become increasingly difficult to display. Fortunately, parallel coordinates plots provide a mechanism for viewing results with higher dimensions. Several plotting packages provide parallel coordinates plots, such as Matlab, R, VTK type 1 and VTK type 2, but I don't see how to create

How to plot parallel coordinates on pandas DataFrame with some columns containing strings?

流过昼夜 提交于 2019-12-19 09:49:11
问题 I would like to plot parallel coordinates for a pandas DataFrame containing columns with numbers and other columns containing strings as values. Problem description I have following test code which works for plotting parallel coordinates with numbers: import pandas as pd import matplotlib.pyplot as plt from pandas.tools.plotting import parallel_coordinates df = pd.DataFrame([["line 1",20,30,100],\ ["line 2",10,40,90],["line 3",10,35,120]],\ columns=["element","var 1","var 2","var 3"])

dplyr masks GGally and breaks ggparcoord

强颜欢笑 提交于 2019-12-09 15:44:26
问题 Given a fresh session, executing a small ggparcoord(.) example provided in the documentation of the function library(GGally) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1:dim(diamonds)[1], 100), ] ggparcoord(data = diamonds.samp, columns = c(1, 5:10)) results into the following plot: Again, starting in a fresh session and executing the same script with the loaded dplyr library(GGally) library(dplyr) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1

Parallel Coordinates with check box

橙三吉。 提交于 2019-12-07 15:57:34
问题 I have some data that I want to visualize them using parallel coordinates. My data consists of 200 rows (cases) and 100 columns (features). I just need to visualize some part of data (200x8), including feature1, feature2, ..., feature8. Also I have 4 columns of data (A, B, C and D) that their values are either 0 or 1. For example if the value of column A for one case(row) is 1, it means that case of data is type A. I already have the code for plotting parallel coordinates : <div class="filter

Parallel Coordinates with check box

梦想的初衷 提交于 2019-12-05 23:49:25
I have some data that I want to visualize them using parallel coordinates. My data consists of 200 rows (cases) and 100 columns (features). I just need to visualize some part of data (200x8), including feature1, feature2, ..., feature8. Also I have 4 columns of data (A, B, C and D) that their values are either 0 or 1. For example if the value of column A for one case(row) is 1, it means that case of data is type A. I already have the code for plotting parallel coordinates : <div class="filter_options"> <input class="filter_button" id="a_button" type="checkbox">A</input><br> <input class=

dplyr masks GGally and breaks ggparcoord

╄→гoц情女王★ 提交于 2019-12-04 02:56:49
Given a fresh session, executing a small ggparcoord(.) example provided in the documentation of the function library(GGally) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1:dim(diamonds)[1], 100), ] ggparcoord(data = diamonds.samp, columns = c(1, 5:10)) results into the following plot: Again, starting in a fresh session and executing the same script with the loaded dplyr library(GGally) library(dplyr) data(diamonds, package="ggplot2") diamonds.samp <- diamonds[sample(1:dim(diamonds)[1], 100), ] ggparcoord(data = diamonds.samp, columns = c(1, 5:10)) results in: Error: (list

R parallel coordinate plot with fixed scale on X-axis, no matter how large the plot becomes

六眼飞鱼酱① 提交于 2019-12-02 19:55:54
问题 I am trying to build a parallel coordinate diagram in R for showing the difference in ranking in different age groups. And I want to have a fixed scale on the Y axis for showing the values. Here is a PC plot : The goal is to see the slopes of the lines really well . So if I have value 1 that is bound with the value 1000, I want to see the line going aaall the way down steeply. In R so far, if I have values that are too big, my plot is all squished so everything fits and it's hard to visualize

Controlling color in ggparcoord (from GGally package)

社会主义新天地 提交于 2019-12-01 12:42:11
I am trying to hard-code the desired line color for a particular ggparcoord plot. For instance, when I create my ggparcoord plot below: library(GGally) x = data.frame(a=runif(100,0,1),b=runif(100,0,1),c=runif(100,0,1),d=runif(100,0,1)) x$cluster = "green" x$cluster2 = factor(x$cluster) ggparcoord(x, columns=1:4, groupColumn=5, scale="globalminmax", alphaLines = 0.99) + xlab("Sample") + ylab("log(Count)") Even though I try to specify a color of "green", I get a pink color. How can I control the color of the lines in ggparcoord? (By the way, I want all lines the same color as I specify). You

Parallel Coordinates plot in Matplotlib

独自空忆成欢 提交于 2019-11-28 03:04:30
Two and three dimensional data can be viewed relatively straight-forwardly using traditional plot types. Even with four dimensional data, we can often find a way to display the data. Dimensions above four, though, become increasingly difficult to display. Fortunately, parallel coordinates plots provide a mechanism for viewing results with higher dimensions. Several plotting packages provide parallel coordinates plots, such as Matlab , R , VTK type 1 and VTK type 2 , but I don't see how to create one using Matplotlib. Is there a built-in parallel coordinates plot in Matplotlib? I certainly don

d3 v4 parallel coordinates selection of paths with d3 v4 brushes

删除回忆录丶 提交于 2019-11-28 02:24:55
I am trying to implement a chart similar to this - https://bl.ocks.org/syntagmatic/05a5b0897a48890133beb59c815bd953 in d3 v4. So I found this library here - https://github.com/syntagmatic/parallel-coordinates which was originally written in d3 v4 so I found a partial ported d3 v4 version her - https://github.com/mlarosa2/parcoords for this so after using this library with some of my customizations I have reached this point here - http://blockbuilder.org/iamdeadman/9e7c89d21c7dc1ce1b13b1ceb931c9eb So, if you open the block you can see that I am not able to draw the brushes on the y-axis anymore