data-visualization

R: Understanding Graph

為{幸葍}努か 提交于 2020-12-27 06:01:44
问题 I am using the R programming language and the "igraph" library. I am trying to better understand graph structures for "two mode" graphs (graphs in which there are two types of nodes). In particular, I am trying to understand how to "project" two mode" (to my understanding, these are usually "bipartite") graphs. (https://rpubs.com/pjmurphy/317838) For instance, I created a graph of relationships between "men" and "women". Although this graph has two modes (men and women), I don't think that

R: Understanding Graph

时光怂恿深爱的人放手 提交于 2020-12-27 05:58:09
问题 I am using the R programming language and the "igraph" library. I am trying to better understand graph structures for "two mode" graphs (graphs in which there are two types of nodes). In particular, I am trying to understand how to "project" two mode" (to my understanding, these are usually "bipartite") graphs. (https://rpubs.com/pjmurphy/317838) For instance, I created a graph of relationships between "men" and "women". Although this graph has two modes (men and women), I don't think that

D3js Updating Histogram elements not working (General Update Pattern)

眉间皱痕 提交于 2020-12-26 11:18:31
问题 I am trying to accomplish something similar to what is here : https://www.opportunityatlas.org/. If you proceed further to this link and click on 'Show Distribution' to see the graph and select 'On Screen' and then move the cursor around the map you will see the size of the rectangles changes and also the update patterns works i.e. if a rectangle was already there it moves horizontally to the new value. I have tried doing the same but could not achieve the update part . Could you please point

D3js Updating Histogram elements not working (General Update Pattern)

橙三吉。 提交于 2020-12-26 11:18:20
问题 I am trying to accomplish something similar to what is here : https://www.opportunityatlas.org/. If you proceed further to this link and click on 'Show Distribution' to see the graph and select 'On Screen' and then move the cursor around the map you will see the size of the rectangles changes and also the update patterns works i.e. if a rectangle was already there it moves horizontally to the new value. I have tried doing the same but could not achieve the update part . Could you please point

D3js Updating Histogram elements not working (General Update Pattern)

不羁岁月 提交于 2020-12-26 11:18:09
问题 I am trying to accomplish something similar to what is here : https://www.opportunityatlas.org/. If you proceed further to this link and click on 'Show Distribution' to see the graph and select 'On Screen' and then move the cursor around the map you will see the size of the rectangles changes and also the update patterns works i.e. if a rectangle was already there it moves horizontally to the new value. I have tried doing the same but could not achieve the update part . Could you please point

Why my D3 line graphs shows black areas for each entity?

若如初见. 提交于 2020-12-26 06:40:17
问题 I made a webscraper that gets data about currency transfer rates of different banks and shows that in a D3 line graph over time (each bank has a line, and the rates are per day). A cronjob server-side makes sure the scraping occurs daily. In the front-end, it uses D3.json to get data from this url: http://rateswebscraper.herokuapp.com/rates I made the line graph but instead of a line for every bank, it shows a black area, see screenshot below: Here is my code: /*global d3*/ var margin = { top

Why my D3 line graphs shows black areas for each entity?

一笑奈何 提交于 2020-12-26 06:39:38
问题 I made a webscraper that gets data about currency transfer rates of different banks and shows that in a D3 line graph over time (each bank has a line, and the rates are per day). A cronjob server-side makes sure the scraping occurs daily. In the front-end, it uses D3.json to get data from this url: http://rateswebscraper.herokuapp.com/rates I made the line graph but instead of a line for every bank, it shows a black area, see screenshot below: Here is my code: /*global d3*/ var margin = { top

How to add a point on the y-intercept (y-axis) using ggplot2

纵饮孤独 提交于 2020-12-25 10:38:24
问题 I have a scatter plot where the y-axis scaling changes at a certain point to plot data with some extreme values. I'm trying to add some sort of visual cue on the y-axis that indicates that the scaling changes at the point. Here's an example of a plot library(scales) library(ggplot2) set.seed(104) ggdata <- data.frame('x' = rep('a',100), 'y' = c(runif(90, 0, 20), runif(10, 90, 100))) transformation <- trans_new( "my_transformation", transform = function(x) ifelse(x <= 30, x / 5, (x - 30) / 20

R: Plotting ROC curves without the “PEC” library

喜你入骨 提交于 2020-12-23 15:55:28
问题 I am working with a computer that does not have internet access or a USB port - I only have R with limited libraries (e.g. I do not have access to the "pec" library). I am following a github tutorial where a "survival analysis" statistical model is fit on some data, and then a ROC (Receiver Operator Curve) is plotted to measure the performance of the model. I am following this tutorial over here: https://gist.github.com/thomasmooon/6eb87964ea663f4a7441cc2b2b730bd4 Everything runs perfectly on

R: Plotting ROC curves without the “PEC” library

坚强是说给别人听的谎言 提交于 2020-12-23 15:50:38
问题 I am working with a computer that does not have internet access or a USB port - I only have R with limited libraries (e.g. I do not have access to the "pec" library). I am following a github tutorial where a "survival analysis" statistical model is fit on some data, and then a ROC (Receiver Operator Curve) is plotted to measure the performance of the model. I am following this tutorial over here: https://gist.github.com/thomasmooon/6eb87964ea663f4a7441cc2b2b730bd4 Everything runs perfectly on