Questions tagged [visualization]

Visualization is any technique for creating images, diagrams, or animations to communicate a message.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
39 views

Plotting a continuous 40 year Histogram data [duplicate]

I am trying to plot daily recorded data over forty years(14k+ data size). For some reasons, my histogram is faulty and all over the place(irregular and some datapoints not starting from base). I am ...
Sarthak Rawat's user avatar
2 votes
1 answer
36 views

Base R: Replacing the horizontal line of median in a boxplot with a horizontal line of mean

This base R code creates a regular boxplot that shows median as the horizontal line in the box. But is there a way to modify this code, so that the horizontal line would be mean instead of median? a &...
Gato's user avatar
  • 415
1 vote
1 answer
37 views

what does lists = list(zip(*reader)) do in python

import csv with open('cleaned_all_phones.csv') as file: reader = csv.reader(file) lists = list(zip(*reader)) for row in lists: #prints y axis print(row[0]) #...
0 votes
1 answer
47 views

How can I prevent R from extrapolating the regression line outside the range of data points?

I am fitting a linear model in R with an interaction term as follows: model<- 'lm(y ~ x * z)'. y and z are continuous variables and z is a categorical variable with 3 categories. When I plot my ...
JaGo's user avatar
  • 5
-2 votes
5 answers
70 views

Color scatter plot points by x-values [duplicate]

I want to color the points of a matplotlib scatterplot by their x-value. For example if x belongs to [0,5] then points are red, if (5,10] green, etc. I tried to assign to the argument c list with ...
just man's user avatar
1 vote
1 answer
25 views

Does the default power bi auto date/time for new files support hourly view?

I have auto date/time for new files enabled. My model has a table with DateTime, Business Unit, Sales. The date time values are hourly. For example: 26-09-2023 10:00:00 When I load this data into ...
variable's user avatar
  • 8,372
-1 votes
1 answer
35 views

Number of observations showing in x-axis legends

This Basic R code creates a boxplot. For some reason, the number of observations appear in the x-axis legends. There should be only A and B, not A50 and B50. Can you tell me what is the matter and how ...
Gato's user avatar
  • 415
0 votes
0 answers
23 views

Changing y-axis range in R

Why this code doesn't change the y-axis range from 1 to 7? I also tried with scale_y_continuous(breaks = 1:7) but the range remains the same. Here is my code for a boxplot p <- ggplot(plot_df, aes(...
Gato's user avatar
  • 415
0 votes
1 answer
37 views

The rep function calculating mean and standard deviation

This is my sample data: x1 <- c(1, 2, 3, 4, 5) x2 <- c(6, 7, 4, 5, 7) x3 <- c(4, 5, 3, 7, 1) x4 <- c(3, 5, 6, 4, 2) x5 <- c(1, 3, 4, 4, 2) x6 <- c(4, 5, 4, 3, 5) df <- data.frame(...
Gato's user avatar
  • 415
-1 votes
1 answer
78 views

How to pass histogram bins for each discrete value in 2D histogram and plot it

My data can be seen as a time series. For t=0 there is some data x0, then for t=1 some data x1, etc. I am trying to create a 2D histogram using sns.histplot here for reference of this data. I want to ...
Schach21's user avatar
  • 400
0 votes
1 answer
18 views

Change the positive negative breakpoint (default 0)

I would like to create the following visual with Recharts: Ignore the colors or the orientation, only focus on the breakpoint for a positive or a negative bar. Which in my case is 100. Below 100 the ...
Simke Nys's user avatar
0 votes
1 answer
30 views

Failed to create chart: can't acquire context from the given item Angular

I am using Chart.js in Angular 15 , the console displays the following. 2 errors - vendor.js:209527 Failed to create chart: can't acquire context from the given item . Canvas is already in use. Chart ...
user17449555's user avatar
0 votes
1 answer
50 views

Mean of means and standard deviation into a boxplot

How to make a boxplot with R that shows the mean of means of a sum variable and the standard deviation of the same sum variable? In this case, the mean of every row should be calculated as (x1 + x2 + ...
Gato's user avatar
  • 415
1 vote
1 answer
22 views

Customizing x-axis for Tornado chart in Plotly

How can i set the single start point for two mirror axis? I have built a graph with 'make_subplot' function. But I get an empty space in the center. I use the 'Sample Superstore' dataset from Tableau ...
Ars's user avatar
  • 23
0 votes
0 answers
23 views

Circular Progress Always Showing on Refresh Chart JS disappears

I'm working on a React project where I display historical cryptocurrency data using react-chartjs-2. I have implemented a circular progress indicator using @mui/material to indicate that data is being ...
user12577611's user avatar
0 votes
1 answer
38 views

Get other shapes in R for geom_point

I need to replicate this exact visualisation but i can't find those shapes in R. How can I find, for example, the first shape from here which is square inside the square? ggplot(df, aes(x=x_column,y=...
just man's user avatar
0 votes
1 answer
25 views

How can I create a 3D plot based on pixel intensity in Python?

I have a TIF image, and based on its pixel intensity, I'm aiming to generate a 3D plot. I've come across a sample image that represents the kind of visualization I'm looking to achieve: Please note ...
code_lover's user avatar
-1 votes
0 answers
19 views

How are bins value allocated using the code below [closed]

how exactly does this first line of code works : out1,bins,out3 = plt.hist(profit,bins = 20) plt.xticks(bins,rotation = 90) plt.show() out1 values: array([ 1., 1., 3., 2., 3., 6., 12., 83., 15.,...
Sanjana Hongunti's user avatar
0 votes
0 answers
13 views

R lines / segments overlaid on contourplot rendering incorrectly?

I have some r code that produces a filled contour plot or a function that takes either 0 or 1, and then I want to overlay some lines on it. But I'm getting some strange behaviour with the lines ...
DRG's user avatar
  • 241
-1 votes
0 answers
31 views

why am i getting ValueError: could not convert string to float: 'Iris-setosa' while plotting heatmap

I am using the iris dataset for visualization and the error occurs in this line sns.heatmap(data=data.corr(), annot=True,cmap = "GnBu") I tried manually converting the "Iris-setosa&...
APURV NIKUM's user avatar
1 vote
1 answer
34 views

Power BI Matrix with rows based on slicer selections AND aggregates

I have a table that contains interviews held in all offices in my country which contains the following columns: State Office Name Wait Time Interview Length I have a handful of slicers that allow you ...
Sweepster's user avatar
  • 1,853
1 vote
2 answers
101 views

Power BI :: should I use USERELATIONSHIP, CROSSFILTER, TREATAS or JOIN?

I have a simple model which relationship can be represented like this: The blue line relationship is disabled and the two tables that I currently want to represent they look like this: If I enable ...
Francesco Mantovani's user avatar
0 votes
2 answers
38 views

Bar chart grouped by treatment and with subdivided bars in R with ggplot2

How are you? My goal is to create a plot in R that can display 3 distinct variables in a single plot. Let's get to the problem: I have a sample of 2 different environmental soil variables across 3 ...
Vinicius Rocha's user avatar
-1 votes
1 answer
39 views

Axis removal from Scatter graph in Python [closed]

I used the below command to remove the axes from the graph, and though it compiled without error, but the output is - an empty graph. The I used pyPlot.axis('off') and it workds fine. plt.axes()....
Akhil Nath's user avatar
1 vote
1 answer
15 views

Power BI - How to partition & aggregate data for a clustered column chart?

In my data model I have a table that looks a bit like this: Customer Demographic Sales A AA 10 B AA 15 C BB 20 D CC 30 I want to create a clustered column chart in my report that shows sum of ...
SRJCoding's user avatar
  • 367
2 votes
1 answer
30 views

Line chart: Current month should be dynamically displayed in different colors

My challenge: I have a line chart in Power-BI. This shows the running sum auf my working hours per day of the month (see below). Today I am changing the recent month (here: September) in a different ...
Florian's user avatar
  • 73
-3 votes
0 answers
19 views

Course PL-300T00: Microsoft Power BI Data Analyst - sample database [closed]

Which sample database(s) do I need for this course Course PL-300T00: Microsoft Power BI Data Analyst?
Learn Freak's user avatar
0 votes
1 answer
17 views

Power BI :: CALENDARAUTO() stop creating dates for current month

I have two calendars: Calendar 1 and Calendar 2 that I have been using for the last months without problems. Today (21/09/2023) I open my Power BI Desktop and I realize that all dates for September ...
Francesco Mantovani's user avatar
1 vote
0 answers
8 views

Vega-Lite: Comet chart trails travel along both axes, when it should only travel horizontally

I am creating some visualisations using Vega-Lite on a dataset containing electoral data from Malaysia, specifically a dataset of the seats won by each party in each state, in the 14th election and ...
botsunny's user avatar
0 votes
0 answers
6 views

Provide a real time scenario to draw a bubble chart for blog publishing

I planned to publish a blog related to the chart control development (Data visualization). Particularly I want to plot a Bubble chart Any one suggest real time for this blog. Need a real time example ...
Surya Karan Raja's user avatar
0 votes
0 answers
9 views

Not able to run Dtale on root url

We have a requirement to run the multiple Dtale serives in one docker container. So we are planning to run each dtale service with a unique app-root and port. Below is my code looks like. import dtale ...
Gokul Adapa's user avatar
1 vote
0 answers
23 views

How to use Principal Component Analysis (PCA) to analyze a dataset consisting of 300 samples of model temperature data that varies with altitude?

I have 300 samples of temperature and altitude data, each with a size of 20x300. Each of these samples was generated using different characteristics. These 300 temperature profiles vary with altitude, ...
Mark's user avatar
  • 45
0 votes
0 answers
32 views

How to add a table with data changes relative to a variable in ggplot R

I have an example of a plot that i need to get it using the R language. I use the ggplot2 library. Are there any ideas how to get a table that shows the change in values ​​under the graphs I was ...
Reaperz Reaperz's user avatar
0 votes
0 answers
17 views

The dashboard (dash) isn't displaying it's graphics

eventhough the code isn't presenting any explicit error the Dashboard created by the code doesn't display the graphics as it was supposed to. How can I fix it ? Sorry for the bad english. Thank you ...
Rodrigo da silva's user avatar
0 votes
0 answers
21 views

Speech visualization and Speech to Text in Flask Python

I am trying to make a flask app where i want to record audio from user and I want to visualize audio in real time and generate a speech to text. I am able to generate text from audio but how do I add ...
J Prem's user avatar
  • 1
0 votes
0 answers
33 views

how can i visualized my 2023 parameter on tableau after i have found the year different

Tableau visualization i tried this but 2023 column did not calculate rather just giving out negative values in tabeau COUNTD(IF [Year] = 2013 THEN [Name] END) - COUNTD(IF [Year] = 2023 THEN [Name] END)...
osuya ikechukwu's user avatar
0 votes
0 answers
22 views

Pyvista question: Why I cannot see my data in result?

Background I have been using pyvista to visualize 2D image (GPR image) by following this and this. Problem I ran the code without any error, but no data was displayed. Data Let's assume the stucture ...
Changwan Sun's user avatar
0 votes
0 answers
27 views

python highcharts integration issue with loading script in Jupyter Notebook

I encounter this issue while integrating highcharts into my python application with https://github.com/highcharts-for-python/highcharts-core Something went wrong with the Highcharts.js script. It ...
Durga Prasad's user avatar
0 votes
0 answers
15 views

Bokeh's box zoom resetting to pan intermittently

Has anyone encountered the problem where the 'box zoom' in bokeh gets automatically reset to 'pan' intermittently? I am unable to zoom in judiciously, as the reset is erratic. I have installed bokeh 3....
Venkatesh Bharadwaj. S's user avatar
0 votes
0 answers
5 views

Vector collects host metric and fails to write to cnosdb database:The application panicked (crashed)

Vector collects host metric and fails to write to cnosdb database, the log as follow: The application panicked (crashed). Message: begin <= end (34 <= 10) when slicing `mountpoint=/sys/fs/...
Baker's user avatar
  • 71
0 votes
1 answer
30 views

How to combine bar and line chart in ggplot2 in R with proper scales

so I have a data frame df with three columns: Date <- c("January", "February", "March", "April", "May", "June") Number_of_events <- c(...
DY33's user avatar
  • 3
0 votes
0 answers
23 views

Tools/ packages for drawing biological pathways and reactions (from system of ordinary differentiation equations) [closed]

I am trying to draw a huge set of ODEs that describe biological/ biochemical reactions. I know there are solvers in Python/ R/ Matlab (e.g. deSolve). I am not sure if there is a good way to visualize ...
William Wong's user avatar
1 vote
2 answers
13 views

How do you create grouped (individual) pie charts in Vega using the pie transform from a single dataset?

I would like to create a network (graph) diagram using small pies as the nodes. However, I cannot figure out the right approach for generating the individual pies to use for the nodes. I have a ...
sabine's user avatar
  • 362
1 vote
1 answer
17 views

Timeline visualization with ggplot2: How to make parallel events visible?

I want to draw a timeline with ggplot2. Some of the events take place at the same time and ggplot2 tends to draw them on top of each other, such that only one of them stays visible. Here is an example ...
jgoldmann's user avatar
0 votes
0 answers
19 views

Rearranging the order of months in a rose plot to appear chronologically [duplicate]

I am having difficulty trying the rearrange the order of the months around my rose plot so that they appear in chronological order (Jan - Dec). My data are organised in chronological order and are ...
Jack Greenhalgh's user avatar
0 votes
0 answers
41 views

Error in unique.default but I am not using unique!! R Shiny app build

Hey Stacked overflow community, Only built one Shiny app before but running into problems with this one! I keep getting this error which is preventing me from showing my treemap. Very confused because ...
Russ's user avatar
  • 1
1 vote
2 answers
42 views

Adding a new relationship breaks calculation

A software company is selling its product to all major car manufacturer. The software is divided into: multi-tenant resources: resources that are shared between customers (which are car manufacturer ...
Francesco Mantovani's user avatar
0 votes
0 answers
15 views

Venn diagram with item labels and 4 groups of data

I would like to generate a venn diagram with either R or Python for 4 groups of data that contains item labels. I would like the size (or position) of the ellipses to change depending on the content ...
Ruser's user avatar
  • 11
0 votes
0 answers
40 views

Is there a way to replace some cmap colors? [duplicate]

I want to change the color yellow to goldenrod in the matplotlib cmap RdYlBu. Currently, the yellow in the center of RdYlBu is too bright and hard to see. I have tried various methods but have not ...
J.Lee.'s user avatar
  • 1
0 votes
1 answer
53 views

How to show row sub total as value for each row as separate column on power bi

How to show row sub total as value for each row as separate column on power bi Say I have a table Product price day A 45 1 A 53 1 A 60 2 B 50 1 B 67 ...
Ameena Bano's user avatar

1
2 3 4 5
131