data-visualization

R: Plot trees from h2o.randomForest() and h2o.gbm()

此生再无相见时 提交于 2019-11-29 02:54:29
问题 Looking for an efficient way to plot trees in rstudio, H2O's Flow or in local html page from h2o's RF and GBM models similar to the one in the image in link below. Specifically, how do you plot trees for the objects, (fitted models) rf1 and gbm2 produced by code below perhaps by parsing h2o.download_pojo(rf1) or h2o.download_pojo(gbm1)? # # The following two commands remove any previously installed H2O packages for R. # if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) } #

How to display a stacked barchart in Gnuplot?

穿精又带淫゛_ 提交于 2019-11-29 02:49:57
问题 I have a data file that looks a bit like this: A 0.2 0.5 B 0.65 0.8 C 0.4 0.2 i.e., it contains three columns where the first column contains labels and the other two columns float values. Columns are separated by spaces. I'd like to plot this in a way that the labels appear as tics on the x-axis while the columns are plotted as two differently colored barcharts on top of each other. How can I achieve this using Gnuplot? 回答1: Assuming your data are stored in the file 1.dat , stacked barcharts

Scatter Plots in C++ [closed]

北战南征 提交于 2019-11-29 02:32:46
问题 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 3 years ago . What is the best way to graph scatter plots in C++? Do you write data to a file and use another tool? Is there a library like matplotlib in Python? 回答1: I always write out data and then using gnuplot to create my graphs. It is by far the best way I have found of producing graphs in a variety of formats: eps, png

Streaming two line graphs using bokeh

可紊 提交于 2019-11-29 02:24:42
I would like to create a visualization where there are two line graphs which are updated with one new point per line graph per second. The result will be something like this . I have recently read about bokeh and found out that it can be used in visualizing streams of data in real time. However don't know how to code in it yet. I would appreciate it if someone can show me how this task can be done using bokeh. thanks! Elad Joseph For bokeh-0.11.1 : Basically, you need to run you python app in the bokeh server. Then anyone can connect to the server and view the graph in realtime. First, write

MS Chart with ASP.NET chart type “column” not showing axis x label if there are more than 9 bar in the chart

我的未来我决定 提交于 2019-11-29 01:27:56
I have a problem with an MS Chart chart type column. If there are more than 9 bars in the chart, the axis-x labels won't show up properly, some of them just disappear. Here's my mark-up for the chart: <asp:Chart ID="chtNBAChampionships" runat="server"> <Series> <asp:Series Name="Championships" YValueType="Int32" Palette="Berry" ChartType="Column" ChartArea="MainChartArea" IsValueShownAsLabel="true"> <Points> <asp:DataPoint AxisLabel="Celtics" YValues="17" /> <asp:DataPoint AxisLabel="Lakers" YValues="15" /> <asp:DataPoint AxisLabel="Bulls" YValues="6" /> <asp:DataPoint AxisLabel="Spurs"

What's the fastest force-directed network graph engine for large data sets?

人走茶凉 提交于 2019-11-29 00:34:01
问题 We currently have a dynamically updated network graph with around 1,500 nodes and 2,000 edges . It's ever-growing. Our current layout engine uses Prefuse - the force directed layout in particular - and it takes about 10 minutes with a hefty server to get a nice, stable layout. I've looked a little GraphViz's sfpd algorithm, but haven't tested it yet... Are there faster alternatives I should look at? I don't care about the visual appearance of the nodes and edges - we process that separately -

Stacking multiple plots, vertically with the same x axis but different Y axes in R

巧了我就是萌 提交于 2019-11-28 22:56:05
问题 I have a data.frame with multiple time series vectors against a date:time vector. I would like to plot all of the relevant vectors, vertically stacked on separate graphs with the same X axis but unique Y axes. A graph similar to this one: my data looks like this: dt <- structure(list(DEPTH = c(156, 156.5, 157.4, 158.15, 158.8, 159.2, 159.75, 160.35, 160.85, 161.1, 161.6, 162.05, 162.5, 162.65, 163.15, 163.45, 163.55, 163.8, 163.65, 163.75, 163.8, 163.8, 163.75, 164.45, 164.8, 165.35, 165.65,

Visualize distance matrix as a graph

与世无争的帅哥 提交于 2019-11-28 22:11:42
I am doing a clustering task and I have a distance matrix. I wish to visualize this distance matrix as a 2D graph. Please let me know if there is any way to do it online or in programming languages like R or python. My distance matrix is as follows, I used the classical Multidimensional scaling functionality (in R) and obtained a 2D plot that looks like: But What I am looking for is a graph with nodes and weighted edges running between them. lejlot Possibility 1 I assume, that you want a 2dimensional graph, where distances between nodes positions are the same as provided by your table . In

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

﹥>﹥吖頭↗ 提交于 2019-11-28 19:04:44
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, but I'll get there...) To drag it, we can simply invoke d3's drag behavior using the code they provide: var drag = d3.behavior.drag() .on("dragstart", dragstart) .on("drag", dragmove) .on("dragend", dragend); Works great. Drags well. Now, how do we get it to be the topmost item? Search for "svg z-index" here and it becomes quickly apparent that

Diagonal labels orientation on x-axis in heatmap(s)

五迷三道 提交于 2019-11-28 17:30:16
问题 Creating heatmaps in R has been a topic of many posts, discussions and iterations. My main problem is that it's tricky to combine visual flexibility of solutions available in lattice levelplot() or basic graphics image() , with effortless clustering of basic's heatmap() , pheatmap's pheatmap() or gplots' heatmap.2() . It's a tiny detail I want to change - diagonal orientation of labels on x-axis. Let me show you my point in the code. #example data d <- matrix(rnorm(25), 5, 5) colnames(d) =