visualization

google.load causes empty dom/screen

久未见 提交于 2019-12-22 02:51:19
问题 I'm trying to add a google visualization asynchronous, but I am running into problems. I've narrowed it down to the google.load causing the problem. When google.load part of the js runs, I get an empty screen/dom. Any one know what I am doing wrong. I've also tried using the google.setOnLoadCallback, I get the same result. Any help would be great Relevant code : $(document).ready(function () { google.load('visualization', '1', { 'packages': ['geomap'] }, { 'callback': drawVisualization });

R manual boxplot with means and standard deviations (ggplot2)

房东的猫 提交于 2019-12-22 00:00:13
问题 I have two groups with mean scores and standard deviations which represent how confident we are with the mean estimates. Note: I do not have raw scores, just mean estimates outputted from a model and the SD of the estimates outputted from the model, around that mean. I have a feature set around 20, and I want to compare for each feature the mean +/- standard deviations of each of my 2 groups. It will essentially look like this: ggplot() seems to work with data that has the raw data and it

Plotting group distances in R

心已入冬 提交于 2019-12-21 17:24:36
问题 I have a matrix of group distances G as follows G <- data.frame( Gp1=c(6.525,15.915,16.605,10.665,19.345), Gp2=c(15.915,8.605,31.455,25.485,48.355), Gp3=c(16.605,31.455,7.955,11.195,33.685), Gp4=c(10.665,25.485,11.195,0,21.985), Gp5=c(19.345,48.355,33.685,21.985,0)) rownames(G) <- colnames(G) G Gp1 Gp2 Gp3 Gp4 Gp5 Gp1 6.525 15.915 16.605 10.665 19.345 Gp2 15.915 8.605 31.455 25.485 48.355 Gp3 16.605 31.455 7.955 11.195 33.685 Gp4 10.665 25.485 11.195 0.000 21.985 Gp5 19.345 48.355 33.685 21

Matlab 3d volume visualization and 3d overlay

。_饼干妹妹 提交于 2019-12-21 13:57:29
问题 The question is pretty much the title. I have a 3d volume loaded as raw data [256, 256, 256] = size(A) . It contains only values of zero's and ones, where the 1's represent the structure and 0's the "air". I want to visualize the structure in MATLAB and then run an algorithm on it and put an overlay on it, let's say in the color red. So to be more precise: How do i visualize the 3d volume. 0's transparent, 1's semitransparent? Plot a line in the 3d visualization as an overlay? I already read

How do you visualize logfiles in realtime?

爱⌒轻易说出口 提交于 2019-12-21 11:55:38
问题 Sometimes it might be useful, but mostly just looking cool or impressive to visualize log files (anything from http requests and to bandwith usage to cups of coffee drunk per day). I know about Visitorville which I think look a bit silly, and then there's gltail. How do you "visualize" your log files in realtime? 回答1: You may take a look at Apache Chainsaw. This nifty tool allows Log incomes from nearly everyqhere and has live filtering and colering. If you have an already written Log, I'm

Drawing a Web Graph [closed]

这一生的挚爱 提交于 2019-12-21 09:14:08
问题 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 last year . I'm trying to draw a graph on an ASP webpage. I'm hoping an API can be helpful, but so far I have not been able to find one. The graph contains labeled nodes and unlabeled directional edges. The ideal output would be something like this. Anybody know of anything pre-built than can help? 回答1: Definitely graphviz.

Disable cowplot default for ggplots

旧时模样 提交于 2019-12-21 07:34:44
问题 The ggplot2 add-on package, cowplot , has a nice function for plotting multiple plots called plot_grid() . Here's plot_grid() in action: library(ggplot2); library(cowplot) plot_a <- ggplot(mtcars, aes(mpg, wt)) + geom_point() plot_b <- ggplot(mtcars, aes(mpg, disp)) + geom_point() plot_grid(plot_a, plot_b, labels = c("A", "B")) But note how loading cowplot changes the default style of plots. How can I load the cowplot package so that I can use the plot_grid() function but also disable the

How to use different shapes for every point in ggplot

自作多情 提交于 2019-12-21 05:25:10
问题 I am plotting a 4 dimensional data set. Beyond the x-axis and y-axis, I want to represent the 3rd and the 4th dimension by rectangles of different width and height. Can I do this with ggplot ? Thanks. 回答1: Here is one approach: dd <- data.frame(x = (x <- 1:10), y = x + rnorm(10), width = runif(10,1,2), height = runif(10,1,2)) ggplot(data = dd) + geom_rect(aes(xmax = x + width/2, xmin = x - width/2, ymax = y + height/2, ymin = y - height/2), alpha =0.2, color = rgb(0,114,178, maxColorValue=256

Heatmap generation

你。 提交于 2019-12-21 05:16:09
问题 I have an Excel file with two different columns. One column have values ranging from 2 to 15 and other column have values ranging from positive to negative numbers. I want to produce a heatmap in such a way that for first column each value should have a different color. Second column should be in the form of a gradient. I tried using excel conditional formatting to do this. But I want to know is there any way to do it in R? 回答1: The R command image() takes a matrix and makes a heat-map from

Visualizing graph database

☆樱花仙子☆ 提交于 2019-12-21 04:51:27
问题 Assuming i am working with neo4j , the only way i can think of that would visualize my mock up data is to generate cypher code and paste it into neo4j's data browser Is there another (better, simplier?) way one can use to create visualization without using cypher ? Generating cypher code seems like a complex enough task by itself. Writing tests is of course another way of making sure relationships are set up right, but as i am learning the system, i'd like to visually see things to make sure