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.)

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

How can you know that result of auto.arima is accurate?

I’m using auto.arima and forecast package to forecast the COVID-19 dataset. I got my results and graphed them in R. As I’m no statistician, I read many papers available online related to COVID-19 and ...
0
votes
0answers
19 views

How to graph multiple variables

I've been tasked with the challenge of creating ONE singular plot that entails a multitude of relevant given data. There is one dependent variable vs three independent continuous variables, an ...
-4
votes
0answers
20 views

Why do they claim that you can “prove anything” with statistics? [closed]

If you can "prove anything" with statistics, then one of these must be true: The numbers are lying in the first place. They have "zoomed in" on a part of a graph which looks visually "uplifting", ...
0
votes
0answers
15 views

Finding intervals of non-NA:s in huge number of time series [closed]

I have around 20 000 time series during a 5-year period and many of the series contain NA:s during this time. I need to find a time period, say 18 months, that contain as little NA:s as possible, in ...
2
votes
2answers
87 views

Calculating the Mean of an Ordinal Variable Question

I have distributed and analyzed a survey regarding teaching quality. For some of the questions, I ask how often a given teaching method is used. When doing this I ask them to select one of the ...
0
votes
0answers
22 views

Visualize multiple rejection reasons

Goal: Visualize why loans are rejected which can be due to multiple reasons. A loan is either rejected or accepted. Any rejection is caused by one or more rejection reasons. There is a list of ...
0
votes
0answers
11 views

Searching for connected entities within a graph [closed]

I have a table that holds 2 columns - person_id and device_id. Each person_id can be ...
0
votes
0answers
16 views

To determine the observation(or value) and variable in a given data

While reading "Statistics_The Art of Learning from data" book, we are given data to represent it in a histogram. I have read about the type of variables- i) Categorical variables(if observations on ...
1
vote
0answers
24 views

Summary of All of Statistics in a useful mind map [duplicate]

Is there a good mind map to summarize all the important concepts in statistics in a useful manner so that a beginner can decide which topics he has covered, which he needs to cover in short term, ...
0
votes
0answers
16 views

Plotting confidence interval - graph showing odd results

Just wondering if anyone can help me analyse the following: I plotted my confidence intervals from a GLM, and found that a lot of the points don't overlap the C.I. What exactly does this mean ...
0
votes
0answers
14 views

Is there a visualization technique/statistical test to compare the growth rates of 2 treatment groups?

Is there a visualization technique/statistical test to compare the growth rates of 2 treatment groups in which patients in each group do not all have the same number of weigh-in dates The data in the ...
0
votes
2answers
29 views

Build a nomogram for a semi-parametric cox model: help to find the (best) time point for prediction

I'm using R 3.6 software. I try to build a nomogram for my survival data but I don't understand how can I choose the survival time point prediction. I have a maximum survival time of 3500 days. If I ...
0
votes
1answer
22 views

How to plot the relationship of two Likert scale variables?

I have two variables which are measured on a Likert scale. I ran the Spearman correlation test to test the relationship between them and they have a negative correlation coefficient (-0.729 with a p-...
2
votes
1answer
29 views

Plot ROC curve in R with the PRROC package

After many hours of research, trial and error and frustration I hope someone here will be able to guide me in the right direction. I am fairly new to R and statistics and can not wrap my hand about ...
2
votes
0answers
20 views

ggplot: help with interpreting standard error areas

I have made the graph below which shows the SE area around lines. However, I can't work out why they are so large for the 3rd graph. Graph code: ...
0
votes
0answers
6 views

How to change line's width in calibrate curve with plot() in R? [migrated]

I am trying to plot a calibrate curve with plot() in R, and my code is: ...
3
votes
0answers
23 views

Visualizing regression with categorical variables

I am working my way through linear models in matrix form using mainly Brown (2014) Linear Models in Matrix Form. The book presents a schematic representation of observed and fitted values in a linear ...
0
votes
0answers
13 views

Finding abnormal behavior in costs in R

I have a dataset with 70 000 observations and 5 variables, x1,x2,...x5 were: x1 = cost, ...
1
vote
0answers
13 views

How should I visually represent these preference rankings?

I'm trying to visually represent the following rankings in a clear and intuitive way, but am unsure of how to best do that. Here's the data: There are 4 outcomes: A1, A2, B1, B2 The letters are the ...
2
votes
2answers
32 views

Presenting 5-point Likert scale data as a percentage, rather than an average

I'm working on a project that uses mostly descriptive statistics to show how satisfied people who visit police services are with the services at any particular station. The consumers aren't very savvy ...
1
vote
0answers
10 views

Adding custom legend to fourfold() [migrated]

Does anyone know how to add custom legends to fourfold() from the vcd package? I can add to fourfoldplot() in base using the legend() function, but I want to use the custom colours for OR≈1.0 and OR≠...
0
votes
0answers
8 views

Can someone explain the order of arguments for %in% in R software? [migrated]

"gapminder" is a dataset with variables like fertility rates and GDP for each country and each year. I want to access and compare the fertility rates of Turkey and Sri Lanka in the year 2015. ...
0
votes
0answers
12 views

When comparing groups of subjects with within-subjects repeated measures, is it appropriate to use the per-group observations directly?

I'd like to show a summary figure comparing two groups. Within each group, each individual responded to multiple independent trials. As an example: ...
2
votes
1answer
88 views

Is normal-QQ plot used for checking linearity assumption in linear regression? [closed]

I was wondering if this way of checking linearity assumption in linear regression is correct or common. In "Build the Linear Model", one of the slides (to open it in presentation mode, first ...
0
votes
2answers
68 views

Why is my logistic curve not a S curve using ggplot2::geom_line? [closed]

My model is logistic model, log_expenditure and householdpopulation are continuous variable, m1_q23_edu and m1_q25_caste are different categories. ...
1
vote
1answer
19 views

Visualizing the variable DAG in a stan / brms model

I would like to visualize the relationships between variables in the brms / stan models I write. I could make these myself for each model, but I'm hoping there's a package to generate them ...
0
votes
0answers
22 views

Distance Correlation Result Interpretation

These are the two columns, which I am comparing to find distance correlation. ...
1
vote
0answers
32 views

Can you tell whether the linearity assumption holds by inspecting these graphs?

The multiple regression model in R looks like this: > Model <- lm(log(Y) ~ log(x1) + x2 + x3 + x4 + log(x1)*x2, data=df), where ...
3
votes
1answer
71 views

Close curves on an Andrews plot

On the Andrews plot, close points (that is inputs) appear as close functions (the curves), but the reverse does not necessarily hold. That is there can be two curves on the Andrews plot that are close,...
2
votes
1answer
51 views

Can a 4D perceptron be plotted in 2 dimensions?

I am wondering if it is at all possible to plot a 4D perceptron line in 2D. Obviously, it would be impossible to observe it with all of its original information, but is there a way for me to observe ...
0
votes
1answer
35 views

Representing interaction plot for coxph model using plot_model() in R

I used coxph() to model the latency to a behavior as a function of the levels of a hormone in interaction with the treatment administered. Code for model is as follows ...
3
votes
1answer
55 views

How to add error bar plots into a parameter table?

I saw a very neat and clear table in this paper https://link.springer.com/article/10.3758/s13421-018-0797-5: As shown above, the authors added error bars of parameter estimates into a table, which ...
1
vote
0answers
12 views

interpreting deviance residual plot for response of negative binomial distribution

I have a big dataset on which I've used glm.nb(). I plotted the deviance residuals and got the plot below as the result. I do not understand what it means, why is it two "bands" of residuals?
1
vote
0answers
14 views

Mixed Group Data

I'm trying to analyze data that has been mixed and I'm not sure if there's any good way to approach it. I have data from two groups at different periods of time, say 2, 4, 6, and 8 weeks. For weeks 2-...
1
vote
0answers
9 views

How to Handle Data vs Visual Representation Granularity Mismatch in Line Chart?

A bit simplifying here but I'm facing a problem with granularity when representing data in Time/Value format visually as a Line Chart. Where let's say, the Value is Balance of a bank account. The ...
2
votes
0answers
23 views

How do I interpret this PCA plot?

I have to equally scaled variables that I want to combine into one PCA component measuring standards of living: slvpen: Standard of living of pensioners: 0 = Extremely bad, 10 = Extremely good. ...
3
votes
1answer
46 views

Intuition behind Partial Residual Plots

I've been reading how univariate analysis in data with a lot of variables can be misleading due to "Simpson's paradox". I found the explanation of this phenomenon pretty fascinating but easy to ...
0
votes
0answers
7 views

Error bars representing within-subject SEM across participants

In more than one social science paper I've seen error bars reported as representing "within-subject SEMs across participants". For instance, this paper by Jacoby et al. 2019: It seems to me this is ...
0
votes
1answer
14 views

simpler understanding to “average” in demographics

I am trying to understand "Graph 7a: HES average 24-hour electricity use profile for owner-occupied homes, England 2010-11" in United Kingdom housing energy fact file, especially the definition of "...
0
votes
0answers
8 views

How to make a generalized pairs plot?

I came up with a funky plot (data=Accident), which I think is wrong. I need help in getting the correct generalized pairs plot. Below is the code I used. Thank you. ...
1
vote
1answer
30 views

How I generate more data to do analyses?

I have a datasets for 3 months, its about a vehicle movement and the gas consumption. The vehicle should refill gas after 750 km driving. But the data I have is not enough. The first month I have only ...
0
votes
0answers
18 views

Appropriate ways to visualize interaction effects of a logistic regression model

I would like to visualize the interaction between a treatment condition and several covariates. The following question will give examples from R, but really this is ...
0
votes
1answer
53 views

How could we improve the Rainbow Tornado graph of Coronavirus deaths?

I'm sure some of you would have seen this graph, which is going viral on twitter and getting a fair bit of criticism. It describes the trajectories of numbers of deaths per day vs rate of change of ...
1
vote
1answer
31 views

Making a residual plot in multiple linear regression

I need to make a residual plot and I was wondering whether I make the plots in multiple linear regression on one independent variable at a time (like making a simple linear regression) or the all of ...
1
vote
0answers
14 views

Unsupervised methods for a dataset that contains ordinal categorical variables casted as numerical

I'm fairly new to statistical learning. At the moment, I'm using the EU-SILC dataset to analyse the factors that determine the French income (x). It can be found here: https://ec.europa.eu/eurostat/...
4
votes
0answers
72 views

Identifying non-linearities in relationship between variables

Logistic regression is often used to identify the effect of $x$ on a binary variable $y$ after adjusting for potential confounders $x_1,...,x_n$. In the medical literature, I will sometimes encounter ...
0
votes
2answers
39 views

How should I color the dozens of curves in this plot?

I have 48 curves that I need to put in a single plot. Below is the current version of the plot; I made it using ggplot2. The curves belong to four groups; each group has 12 curves. I'd like to color ...
0
votes
0answers
19 views

Google Mobility Data Plots

The google mobility data shared here: Google Mobility Report plots how much change there has been observed at given locations using opt-in location data, relative to a median value for that day of the ...
0
votes
1answer
51 views

Why does my Cullen and Frey Plot indicate a Beta distribution even though it is not a probability distribution?

I am trying to build a model that will estimate people´s willingness to pay for a certain good. My dataset is comprised of more than 1000 observations and 30 variables. This is how my distribution ...
1
vote
0answers
16 views

Simulate data from a bivariate normal distribution (obtain some bimodal effect)

I playing around trying to emulate a visualization of the book Introduction to Statistical Learning, chapter 2, page 38. My problem is that I cannot achieve to draw a decision boundary of a ...

1
2 3 4 5
51