Questions tagged [scatter-matrix]
30 questions
0
votes
1 answer
What is required in my code to make my scatter_matrix appear?
I'm just getting into some basic machine learning and I'm trying to graph out my data points with pandas.plotting.scatter_matrix. However, whenever I put in the code for it, nothing shows up so I'm not sure what I'm missing in my code.
import pandas…
0
votes
1 answer
Is there a function to calculate the scatter matrix in R language?
Recently I have been trying to use an optimizer to make feature selections for clustering. I need a fitness function to tell the optimizer which feature set is better. So I refer to the criteria mentioned in the book "Introduction to Statistical…

刘安琪
- 1
0
votes
1 answer
pd.scatter_matrix not working on pandas version 1.4.2
Here is my code:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
fruits = pd.read_table('readonly/fruit_data_with_colors.txt')
from matplotlib import cm
X =…

Jay Ji
- 1
- 2
0
votes
1 answer
How to plot a sparse matrix in a scatter pairs plot in python while discarding zero values?
I have a sparse matrix (140 x 363) with many zeroes. This matrix only has positive float values.
I would like to generate a scatter pairs matrix plot discarding all zero values (0.0, 0.0) without affecting the display of the example values (0.0,…

Juan Pablo
- 15
- 4
0
votes
1 answer
How to get rid of gridlines in all the subplots of scatter_matrix in plotly?
I am trying to get rid of the gridlines in all the subplots of the scatter_matrix plot. I have set the showgrid parameter to False for the x-axis and y-axis, but the majority of the subplots do have the gridlines still being presented. How do I…

BJ Williams
- 37
- 5
0
votes
1 answer
How to get a scatter matrix consisting of just scatterplots with a 1:1 line, and good axis labels?
I want to have a matrix of just scatterplots in which a 1:1 line is present.
The data has the following structure:
bulk_SIC_25 <-…

Guuz
- 3
- 2
0
votes
1 answer
Invalid model formula in extractvars when trying to display scatter matrix
When trying to create a scatter matrix in R, I am using the pairs function inputting columns 1, 6, 11, and 14 as so:
pairs(~ 1 + 6 + 11 + 14, data = housing.df)
but getting an invalid model formula error:
pairs(~ 1 + 6 + 11 + 14, data =…

Yash
- 11
- 3
0
votes
0 answers
using scatter matrix plot in python
jumping from R to python since org. wants very work to be done in python :(. struggling what seems to be a very basic task.
i have a dataframe 25*25 with rows as observations and columns as different atttributes. I want to plot these 25 columns…

Pri
- 21
- 7
0
votes
2 answers
How do I combine scatterplots to form a scatterplot matrix with common X axis for varied Y axis?
my plot looks like this
This is what I've tried. I make individual scatter plots and combined them together with grid.arrange.
data(methylmercurydata)
p1 <- ggplot(data=methylmercurydata,aes(x=MeHg, y=logTHg)) + geom_point()
p2 <-…
0
votes
1 answer
Python scatter matrices from dataframe with too many columns
I am new to python and data science, and I am currently working on a project that is based on a very large dataframe, with 75 columns. I am doing some data exploration and I would like to check for possible correlations between the columns. For…

JBVasc
- 63
- 8
0
votes
1 answer
Calculating a vectors with its transposed vector
I'm working on a calculation for a within matrix scatter where i have a 50x20 vector and something that occured to me is that multiplying transposed vectors by the original vector, gives me a dimensional error, saying the following:
operands could…

xnok
- 299
- 2
- 6
- 35
0
votes
1 answer
Scatter matrix for Iris data
colleagues new to Python but got a challenge to do scatter matrix for the Iris data without using a lab.
I thought a for loop can be used to plot scatter by literately one feature on another.
I have put all the features as X. Please advise what…

kassa
- 1
- 4
0
votes
2 answers
Problems importing pandas.plotting for building a scatter_matrix
This question is strongly related to this Question on Stackoverflow: Problems importing pandas.plotting
I tried all the Answers, but this did not work.
So I also tried with and without the tools module
I also try to make a scatter_matrix:
My…

Filip
- 1
- 1
-1
votes
1 answer
cannot reshape array of size 1934 into shape (3,1)
I want to build my own PCA in python for the dataset having shape of (1934,32). Numpy array(binary image file). In the PCA I need to calculate the scatter matrix. I have a code, that works fine on images and an array of sizes (3,x). but doesn't work…

krunal patel
- 41
- 7
-2
votes
1 answer
How to find the maximum range of a parameter in python?
For example, in the pandas library, there is a module named - 'plotting' which has a method - 'scatter_matrix', which in turn has a parameter - 'alpha'. According to the python documentation, alpha is used to set the transparency of points on a…

Gaurav Singh
- 17
- 1
- 4