visualization

Getting error “recursive indexing failed at level 2” in R when trying to recurse through list

佐手、 提交于 2019-12-13 16:01:19
问题 I am getting an error "recursive indexing failed at level 2" when I try to recurse through a list of graph vertices, matching their value with a set of colors in a list. My list of colors is as follows: colrs <- list(l = "blue, c = "red", n = "gray50") Then I have a list of vertices in an igraph vs object that have the values "l", "c", or "n" on a "value" attribute (i.e. V(g)$value). The simple access that I'm trying to do is something like this: colrs[[V(g)[1]$value]] And the above works as

drawing scatterplot 3D in r

元气小坏坏 提交于 2019-12-13 12:50:38
问题 I would like to visualize my data in a scatterplot3d On my X and Y axis, I would like the same lables. Something like this: x<-c("A","B","C","D") y<-c("A","B","C","D") on the Z axis, I would like to show the comparision between lables in X and Y A with A A with B A with c A with D B with B B with C B with D C with C C with D D with D #altogether 10 values in Z z<-c(0.25, 0.7, 0.35, 1.14, 0.85, 0.36, 0.69, 0.73, 0.023, 0.85) Now I want to draw all of of these infos on scatterplot3d . How can I

invalid color name background in qgraph

拥有回忆 提交于 2019-12-13 05:28:14
问题 I have been trying to use qgraph to generate the network graph. The code is as following Gw <- qgraph(edgeList, diag = TRUE, labels = TRUE,legend.cex = 0.3, vsize = 1,edge.color=colorLabels,legend=TRUE,asize=1) The figure can be generated, but the R command line gives the following error message. I do not know what does the invalid color name 'background' mean. The dput result is shown as follows, dput(edgeList) structure(c("1", "2", "2", "3", "4", "5", "6", "7", "8", "1", "9", "10", "11",

Ignore #'¡DIV/0! Values in both axes of a bar chart - Excel

妖精的绣舞 提交于 2019-12-13 04:46:07
问题 I have this bar chart in excel : As you see, if there is #'¡DIV/0! , the values are 0 . What I really want is that the bar chart just shows the numeric values. In this case. just the first three values would have to be visualized. I tried the formula IF.ERROR(FORMULA,"") but the result was the same, So, How Can I do that? 回答1: You need dynamic ranges for the chart, or filter the data source to hide the rows with the error. Excel charts will not include data that is hidden with a filter. To

How to visualize H2O Tree?

蓝咒 提交于 2019-12-13 04:27:05
问题 I have df data_categorical and a model model . I converted my df to h2o frame with data = h2o.H2OFrame(data_categorical) and trained my model with model = H2ORandomForestEstimator(ntrees=1, max_depth=20, nfolds=10) # Train model model.train(x=training_columns, y=response_column, training_frame=train) I'm trying to visualize the tree that is created (note that I only need one tree) but I can't seem to do that. I downloaded the mojo file with model.download_mojo(path,get_genmodel_jar=True) But

Read in multiple .txt files with header in R

倖福魔咒の 提交于 2019-12-13 02:56:39
问题 Okay, I'm trying to use this method to get my data into R, but I keep on getting the error: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 22 elements This is the script that I'm running: library(foreign) setwd("/Library/A_Intel/") filelist <-list.files() #assuming tab separated values with a header datalist = lapply(filelist, function(xx)read.table(xx, header=T, sep=";")) #assuming the same header/columns for all files datafr = do.call("rbind

Cannot analyse Soundcloud's streaming audio because of the lack of CORS policy

萝らか妹 提交于 2019-12-13 02:38:53
问题 I am working on this visualizer http://trif.it that still works well on Chrome Stable (41.x) but stopped working in Chrome Dev, Beta and Canary (42.x onwards) because of a change in how Chrome (and Firefox before that) handles audio sources to be analysed. Here is the code that is problematic. It should work well until you remove the comments on the last portion that is handling the audio routing. var audioElement = new Audio(); var clientId = "xxxxx"; var oReq = new XMLHttpRequest(); //oReq

Reliable / Popular data visualization toolkit for the web

梦想的初衷 提交于 2019-12-13 02:20:38
问题 I'm looking for a reliable toolkit in any web-neutral[A] language, actively maintained / developed, stable that allows me to build graphs, charts, display data dynamically, allow drag-n-drop of datasets and refreshes automatically. Carlos Scheidegger recommended - http://vis.stanford.edu/protovis/ which looks great! But I'm looking to see what others are there and what ppl are using... [A] What I mean is something like js / jquery, etc. which can be generated by any web language like php,

Matplotlib 3D Plot Colors Appear Darker Than Normal

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 18:33:23
问题 I'm using the mpl_toolkits to plot surfaces in 3d using Axes3D and plot_surface. I visualize the output in the following way, You can clearly see that there is a grey tint to the entire surface when the colors are supposed to resemble the colorbar on the right. I see this behavior in several other plots out there doing similar things. For example here https://stackoverflow.com/a/20475233/2495342 I am using the latest anaconda distribution of python and running my code within spyder which uses

Matplotlib create surface plot (x,y,z,color) given csv data - getting wrong colors

吃可爱长大的小学妹 提交于 2019-12-12 13:37:15
问题 How can I read in four columns of data to create a surface plot which is colored by the fourth variable? In my case, the data was generated using four nested for loops, so the rightmost columns change most frequently while the leftmost columns change least frequently. Here is what I've tried so far. It is creating a solid colored graph but the coloring is wrong. import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt from matplotlib import cm from mpl_toolkits