Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

The tag has no usage guidance.

0
votes
0answers
25 views

draw a histogram of each column seperately using ggplot2

I have the following data.frame: ...
1
vote
0answers
14 views

I need help interpreting this PCA plot

I have a dataset of 116 observations and 10 numeric variables. The dataset contains information about healthy patients and patients attained with breast cancer. I did a PCA plot showing the cluster of ...
1
vote
1answer
17 views

Curvature - Linear Assumption

They asked if the linear assumption is correct, but I just see a graph and based on the data I was taught that a curvature is nonlinear so nonlinear means that a graph is incorrect? What is the ...
1
vote
1answer
22 views

Residual plotting - why do we want to know the error?

The residual plot represents the error between the actual value. Y-axis: residuals X-axis: the predictor variable or fitted values. Why do we want to know the error, what benefits us in getting the ...
1
vote
1answer
51 views

plot the histogram of purchases

i have a dataframe with 34154695 obs. in a dataset a Class variable with value 0 indicate "not purchased" and 1 indicate "purchase". ...
1
vote
1answer
49 views

Confusion matrix plot with python

I'm for a function that can plot the following plot using python:
1
vote
1answer
20 views

How to make a Power Spectral Density Plot in R

I have a time series point process representing neuron spikes. I have computed and plotted autocovariance using acf but now I need to plot the Power Spectral ...
0
votes
1answer
61 views

How to interpret partial dependence interaction plot for binary classification?

The plot below is an example from pdpbox library https://github.com/SauceCat/PDPbox/blob/master/tutorials/pdpbox_binary_classification.ipynb. The what does 0.900 color saturation to the right mean ...
0
votes
1answer
477 views

Gaussian distribution in python without using libraries

I am implementing Gaussian distribution of a variable, but it gives multiple bell shapes. It should be a single bell shape. Below is my code and plot. ...
-1
votes
0answers
18 views

Perceptron with three input

A perceptron with two input is seen in two dimensions x1 is the x axis x2 is the y axis but if we had another entry x3 the graph would be in 3d and x3 would be the z axis? and if we had thousands of ...
1
vote
1answer
19 views

How do I assign a title to each of the histograms I have posted at the same time? [closed]

fig, axes = plt.subplots(1,7, sharey=True) df2.loc[df2.country == 'BR','date_created'].hist(xrot=90,bins=30,ax=axes[0],figsize=(20,4)); df2.loc[df2.country == 'CH','date_created'].hist(xrot=90,bins=...
0
votes
1answer
307 views

Plotting in PySpark?

I have been searching for methods to plot in PySpark. I couldn't find any resource on plotting data residing in DataFrame in PySpark. The only methods which are listed are: through method ...
-1
votes
2answers
41 views

How to plot High Dimensional supervised K-means on a 2D plot chart

I'm Having a ML problem where my data set contains 80 features labelled into 3 groups (0, 1, -1). I want to plot the data on a 2D surface to see how "close" (similar) data with ...
0
votes
0answers
23 views

Most computationally efficient way to plot ~10000 points with non-overlapping labels

I've been trying to plot 10000 points with labels in pyplot. The issue is using pyplot alone results in a lots of overlapping labels. The most common solution is a python package called adjustText , ...
0
votes
3answers
3k views

Scatter plot for binary class dataset with two features in python

I have my dataset that has multiple features and based on that the dependent variable is defined to be 0 or 1. I want to get a scatter plot such that all my positive examples are marked with 'o' and ...
1
vote
1answer
31 views

How to interpret PR and ROC Curve for an unbalanced test set

I have trained a neural network on a dataset, the test set is very unbalanced, ratio between positive examples and negatives is 1:25000. All positive examples are correctly predicted, instead ...
1
vote
0answers
53 views

How to best visualize data when outliers lead to lack of contrasting colors for the rest of the plot?

I have plotted the following map of Philippines according to the population in its regions, using matplotlib.pyplot in Python 3: As can be seen, there's one ...
0
votes
2answers
382 views

How to plot using facet_wrap, over multiple pages as a .pdf files in r cran

I am using ggplot, to compare 114 unique studies for a particular variable I'm interested in. This is what I have used. ggplot(steps, aes(x=factor(edu))) + geom_bar(aes(y = (..count..), group = ...
0
votes
0answers
463 views

How to use ggplot, geom_bar to plot counts for categorical variables

I have a huge data set. My response variable is called edu, and I have several group ids under the column named id_study. There are 113 unique studies for the id_study. There are many categories of ...
0
votes
0answers
20 views

Scatter Plot on Map within a Small Range (a university campus)

I am trying to get a scatter plot of points based on geolocation data superposed on a map. I have already went through several libraries like basemap or plotly which do similar stuffs. However, the ...
-1
votes
1answer
42 views

Orange3 Windows 10 Edit Plots?

In Orange3 64-bit for Windows 10, is it possible to edit plots, graphs, charts, and diagrams interactively? If not, will this feature be added? For example, at minimum, I would like to increase the ...
1
vote
1answer
1k views

Bubbleplot with seaborn

Is there someway to create a bubble plot with seaborn? I already know how to do it with Matplot lib, as in this tutorial: https://python-graph-gallery.com/270-basic-bubble-plot/ ...
1
vote
0answers
18 views

How to read factor vs. factor plots?

How to read factor vs. factor plots? Particularly, what do negative values mean? Also, why is it possible for features to have negative effect on the factors?
1
vote
1answer
1k views

How can I make seaborn do PairPlot such that it wraps around?

I'm trying to do some PairPlots using seaborn, so I can compare a bunch of features against the label I'm trying to model. There are a bunch of features though (~50). So I'm basically doing: ...
3
votes
2answers
449 views

Plots with shaded standard deviation

What tools can I use to make a visualization similar to this one? I want to have the mean be bolded and the standard deviation be shaded.
1
vote
1answer
22 views

Data Visualisation for Dataframe having 3 columns

I have the below data, I am looking for a effective visualization or graphical method (in Python) to understand how the err is distributed with respect to min and max. ...
0
votes
0answers
292 views

how to plot a matplotlib non blocking figure using mpl_connect?

I am ploting a figure using matplotlib. In this figure I have a simple interactive feature: when you hover the mouse over some data, some annotation appears. How can I plot this and continue with my ...
7
votes
3answers
124 views

How to plot clusters in nice a way?

I have a large text dataset clusterized. Each cluster is represented by a centroid of the vectorized texts that belong to it, the number of texts, the created date, and other parameters. I can't plot ...
3
votes
2answers
126 views

What's the easiest way to quickly plot several features simultaneously for new data?

I'm starting a very beginner tutorial for DS/ML. One of the first things to do is to poke at the data they gave me. After doing the typical head() and describe() in pandas, I want to look more ...
1
vote
0answers
59 views

Pandas df - FacetGrid - Need help with plotting [closed]

Let's say I have a df with the below columns ...
1
vote
0answers
573 views

How to plot prediction intervals in seaborn tsplot?

I am plotting a group of time series plots with CI's in seaborn using tsplot: These were produced from 10 traces each: The confidence bars shown (99% confidence) appear to be the CI's for the mean. ...
1
vote
1answer
14 views

Weights and bias' relative to preprocessed X

I am currently using sklearn scale to preprocess my X data before being put into a perceptron - mean/stddev so as to prevent the ...
0
votes
1answer
64 views

Plots getting rid of whitespace

So I'm doing the Udemy course for Data Science in Python, and there's something weird happening with the plots. The first one in the above picture is mine, the second is the instructors. How do I ...
1
vote
1answer
72 views

What kind of Visualization is this?

Can anyone help identify what kind of Visualization this is? (google image search was not informative, unfortunately...)
2
votes
2answers
385 views

How to plot similarity of two datasets?

I'm performing some simulations, and at the end I get a CSV file with three columns. One column holds the values for the x-axis, which was also input to the simulation and theoretical calculations, ...
0
votes
1answer
138 views

rectangular markers in bubble plot (Python)

I would like to make a 'bubble' plot, but with rectangular markers. Is it possible to do this in Python? On x-axis should be the day of the week (Mon, Tue, Wed,...), on y-axis - counts, how many ...
2
votes
1answer
139 views

How to plot categorical data and encode it through colour and shape size?

Given the following data set: I am wondering what kind of plotting technique can be used to produce such a visualization: The Skill attribute is mapped to the ...
1
vote
1answer
129 views

Looping problem in python

I was trying to plot the cluster result of DBSCAN clustering. I cluster data into two cluster and when i write code to plot those it shows 'name error'. But I couldn't understand whats the problem. ...
0
votes
0answers
226 views

How to plot a line in Bokeh from a dataframe

I have an aggregated Dataframe M as in the picture: 3 columns, One column for Year one Column for month and one column for monthly ratio. I want to plot a line in Bokeh with month progression on ...
1
vote
1answer
18 views

Plot 2D function: do I need to pass all the values to the function?

I'm new with Octave and I need to plot this function: ...
3
votes
0answers
38 views

Echo-Effect-Metric Network

I have been working on data science project where I am trying to build a metric for how inbred a source is in a network. We hope to apply this to intelligence reporting, in which documents tend to ...
0
votes
2answers
62 views

How can I plot data after cluster it into two cluster?

I have some unlabeled data with 15 attributes and 30161 instances. I took 70% data for clustering and cluster those data into 2 cluster. I also added one column after clustering named 'cluster' and ...
0
votes
0answers
73 views

Using ggplot in python GUI

I am trying to make a GUI where ggplot's are drawn and the GUI interacts with the plot using python. I am still in the learning phase for the GUI part (but I understand ggplot very well, so I want to ...
1
vote
1answer
756 views

Validation curve unlike SKLearn sample

I'm trying to implement the validation curve based on this SKLearn tutorial. On the site, it shows how based on the parameters the model goes from under- to overfitted, finding the optimal parameter ...
1
vote
5answers
122 views

How would you visualize data that comes in the millions of records?

Developing a application where sometimes when I make a query I get millions or 100 of thousands of records in the results. My problem is , when I get these huge result sets, how do I visualize (in ...
1
vote
1answer
220 views

Create continous plot using matplotlib/seaborn with specific hue [closed]

df.head()= day SBP exercise 0 146.0 False 1 149.0 False 2 146.0 True 3 148.0 False 4 149.0 False 5 149.0 False i am looking to plot <...
1
vote
1answer
4k views

How to use plot model in keras?

I'm trying to draw the keras model with the plotmodel. Setup: I installed graphviz binaries with: choco install graphviz added path to the bin folder, and then ...
1
vote
1answer
40 views

Representing different sets of data

I am out of ideas in regards to plotting different sets of data .... I have 10 sets of data ... Each set contains Actual Speed of vehicle and predicted Speed of Vehicle.. How can i combine all ...
1
vote
1answer
1k views

How to merge columns, value count them and then plot the results?

How do I get from a dataframe with multiple columns that have similar values and need to be merged: ...
0
votes
1answer
216 views

Plot of two different matrices in R

I'm trying to plot two different size matrices using one graph (in R), but can't manage to do so. I tried using matplot and the regular ...