# Questions tagged [data-visualization]

Constructing meaningful and useful graphical representations of data. (If your question is only about how to get particular software to produce a specific effect, then it is likely not on topic here.)

2,601 questions
Filter by
Sorted by
Tagged with
3 views

### Adding confidence intervals to multinom predicted values plot r [migrated]

I want to create plots with predicted values and confidence intervals for my multinomial logistic models (multinom function, created with the ...
13 views

### Q: Dividing maximum value by minimum value and reporting the difference “in times”

I found this plot good for presenting regional disparities; however, which terms should I use with such figure? This graph shows differences in mean salary between country regions by study year. ...
85 views

### How to plot $x^{1700}(1-x)^{300}$?

I'm trying to plot a Bernoulli likelihood function on R: $$x^{1700}(1-x)^{300}$$ But when I try to plot this function on R it looks like this: I think the maximum should be at 0.85, but it shows me a ...
10 views

### Illustrative example plots for Markov's Inequality

I've been following this blog post which breaks down Markov's Inequality with a nice example. When I go to write R code that will reproduce these plots, I cannot figure out what the author was ...
161 views

### The best way to plot high amount of discrete data with 2 variables in R [duplicate]

I am trying to see the relationship between two variables (say A and B) in a plot in RStudio. Both are discrete and range from 1 to 10. However, I have 1000s of data points, so given that there are ...
23 views

### Best practice for presenting odds ratios when variables are on different scales

I have a logistic regression in which most of the predictors are binary, but two are continuous (e.g., age). I am planning to use a simple forest plot to visualise the odds ratios for readers. However,...
12 views

### How to visualize this 1-dimensional data with many location parameters?

What I have: An HTML table containing a time series of measurments of a single value. For example having the columns id,time and measurement. What's the goal: Picking one row the user needs to grasp ...
55 views

### Visualizing the folly of fitting random slopes for variables that don't vary within groups

Sometime I encounter wrong mixed-models that run without warning. By wrong, I mean logically nearly impossible. Think of a cross-level interaction that is set by the software syntax to AGAIN vary ...
28 views

### What's the name of this kind of graph?

I would like to create this type of visualization. It comes from a paper about political self-placement in the left-right continuum: Attitudes, Ideological Associations and the Left-Right Divide in ...
12 views

### How to interpret the representation of data in principal plane?

I have the data X contains the grades of some students in 4 subjects: ...
9 views

### How to read and determine correlation for scatterplot with 5 inputs? (See Image)

I was able to generate this scatterplot via R programming on a dataset of automative vehicles with the following variables (in this exact order): mpg, displacement, horsepower, weight and acceleration....
57 views

### Congestion of N-input Butterfly network

What is the max congestion of an N-input butterfly network where N is an even power of 2? I'm pretty sure it is the square root of N, but what is the exact proof for that?
20 views

### What is the best way to visualize Likert-type dependent variables with 2x2 binary independent variables? [duplicate]

In a between-subjects experiment, we have 2x2 conditions and several 7-point Likert dependent variables. What would be the best way to visualize this data? I am a statistics newbie, so please forgive ...
47 views

### Interactions with time-dependent covariates in survival analysis

I am new to R and I just wanted to know if it is possible to test an interaction between a time-varying covariate and a time-invariant covariate in survival analysis? A related question is, can you ...
12 views

### Term for multipanel scatterplots where each row corresponds to a different variable (e.g. R dataframe plots)

Is there a general term for multipanel scatterplots where each row corresponds to a different variable, as when calling R's plot function with a data frame as the argument? This image provides an ...
24 views

### What methods did Steve Mould use to predict his child birth time? [closed]

Steve Mould explained very briefly how he used his wife's contractions data to predict the time of birth of their son: https://www.youtube.com/watch?v=k7q0Y2W0Rn4 He quickly mentions "standard ...
26 views

### Best way to visualise presence/absence of specific events in multiple case/control studies

I have a dataset where the presence/absence of mutations in 40 particular genes has been recorded comparing normal tissue (e.g. lung tissue) vs a tumour from that tissue (e.g. lung tumor) for twenty ...
26 views

### How to graph ARIMA forecasts vs past values in R

I have performed an ARIMA model and I am happy with my results. Now I am trying to show that my forecast is good. Is it possible to create a graph that shows the forecast vs past values? What I am ...
17 views

### Do residual vs regressors plot show randomness?

I read that residual vs explanatory variables plots should show randomness. Is the randomness persist in these plots?
15 views

### Why is this log graph not the same as percentage change graph?

From my understanding, log measures relative change, which is the same as what percentages do? Is my understanding faulty? If so, please guide me to the correct one. This is the formula I used to ...
11 views

### How to check the relationship between continuous scalar values and discrete binary labels?

I'm currently working on a machine learning project where I designed a model to perform binary classification given (text) input. What I'm working on right now is to analyze whether the distance ...
46 views

### How to get coordinates when only pairwise distances are known? [duplicate]

I have $n$ points with pairwise distances known, $d_{i,j}: 0<i,j<n$. Their coordinates, $\vec{x}_i \in \mathbb{R}^k: 0 <i<n$, are unknown. I can set up $n^2 - n$ equations to solve for ...
14 views

### log relative luminance unit conversion

i have data provided with relative luminance in specific units (ft*L), different from mine (cd/m^2). these units can be converted linearly between each other, but the problem is the data is provided ...
28 views

### how could i plot the interaction effect in a COX model

In a COX model, i included an interaction item between A(continuous variate) and B(category variate),and the p value of A:B1 (reference to A:B2) was <0.05. Could i conclude that A and B have an ...
14 views

### Plotting accuracies obtained through three different methods

I want to plot accuracies for 100 products obtained through three different methods. The data resembles the table below. What is the best way to represent visually these data? I was thinking of having ...
21 views

### Best clustering approach when variable combination sizes vary

Let's say my dataset is as follows: ...
62 views

### Smoothing algorithm for anomalies

To construct a plot, I'm looking for an algorithm which can handle inf and (very) negative values. If I have infinity values everything is a line but not infinities. Example ...
15 views

### Visually show the grouping of things based on relation

I'd like to visually show how certain IoT device's functionality is linked together through some sort of heat map or bubble graph (whichever is appropriate). I have a list of 50 devices, and each ...
28 views

### How to use a scatter plot to detect non-linear co-dependence between two variables?

A scatter plot matrix of 3 time series (financial returns data) are shown below. It is a multivariate representation of a scatter plot, with the individual pairs shown in the off-diagonals. The ...
4 views

### How to extract and plot density alignment of GAN training?

In the source paper for GAN (generative adversarial networks), the generator (blue line) challenges the discriminator (green line) to achieve the true population density in black. Moving from the left ...
24 views

### Interpreting contour plots for two variables

This contour plot shows the relationship between the finished square feet of a home and the tax-assessed value for homes in a County. Things I couldn't understand: what does it mean when lots of ...
40 views

### Interpreting Violin Plots

The plot shown below, shows the percent of flights delayed by each Airline at an airport. From the above violin plot, all I could understand is $25^{th}$, $50^{th}$, $75^{th}$ percentiles are shown ...
36 views

### Drawing smooths from different mgcv::gam models on unified scale in one plot - is it meaningful?

I want to draw the s(x1) smooths from the following models in a single plot, but I'm not sure whether plotting these smooths on the same scale is visually ...
2k views

### What is the best programmatic way for determining whether two variables are linearly or non-linearly or not even related

What is the best programmatic way for determining whether two predictor variables are linearly or non-linearly or not even related, maybe using any of the packages scipy/statsmodels or anything else ...
26 views

### Alternative Ways to Visualize Error/Uncertainty Line Plots for Multiple Data Sets

I'm trying to find an alternative way to visualize this data that may be more visually appealing and meaningful, but I'm not sure what other visualization I could use. Each line represents a test run ...
49 views

### What is name of this kind of graph/plot

Following graph is from this article: It plots percent of participants showing improvement of different percent cut-off values (or more). This can be applied to a large number of situations where 2 ...
43 views

### Understand Johnson Neyman-plot in regard to significant regression terms

I'm modelling the relationship between several parameters like humidity, temperature, ...
15 views

### t-SNE can destroy separability, but can it create it?

The t-SNE algorithm is helpful for visualizing a low-dimension representation of data in dimensions too high for us to imagine. In compressing the data from $\mathbb{R}^{100}$ to $\mathbb{R}^{2}$, ...
14 views

### Why doesn't t-SNE need the labels before visualization?

In the original Maaten and Hinton paper, they explicitly say that the class membership is not used by the t-SNE calculations, only for picking colors in the plot. For all of the data sets, there is ...
35 views

### When should we split the data into train, valid and test datasets? [duplicate]

In EDA we actually get insights about the data. That is completely fine but what i cannot understand is on which dataset should we do the EDA? Should we do the EDA on train dataset or train + valid ...
9 views

### Help identifying Cumulative Expectation vs Cumulative Identification Graph

In a classification problem, I rank scored observations descending by (calibrated) probability of positive result. If I create a graph that shows cumulative % of total expectation captured on the Y ...
44 views

### Is there a plot that can combine average, range and sample size?

Does a style of plot exist that can clearly plot a sample's average, range, and sample size together? I guess I'm thinking of a box plot in which the width might vary in relation to the sample size? ...
26 views

### What's behind PLS regression method?

I was wondering if anyone could provide me a source with a more or less simple explanation to the PLS regression process? I have been reading this paper to help me understand what's behind the PLS, ...
21 views

### Is there an algorithm for placing 2-dimensional embeddings into a grid so they can be displayed?

I’m using PCA to reduce images down to 2d embeddings and I’d like to display the images in a grid. The Pudding did something like this with book covers, using tsne and a library called RasterFairy, by ...
23 views

### How to visually verify correlation in a Generalized Linear Model with Binomial Distribution?

I am trying to determine whether my exogenous variables have significant influence over an endogenous variable. This response variable is a count, so I am using a generalized linear model with a ...
49 views

### Counting and percentages in EDA, analysis in binary classification

Let's asume we have a dataframe with 100 clients, 70 males and 30 females, where 10% of them buys the product and 90% doesn't. Case 1: 7 males and 3 females buys the product = Same distributions If ...
33 views

### How does one show measurement error range for a histogram?

I have some random physical quantity that also has measurement error associated with it. Is there a good way to show the measurement error on a histogram where the x-axis is the random quantity of ...
44 views

### PCA: Using R to generate and plot eigenvalues

I have the following data: ...