Displaying 20 results from an estimated 4000 matches similar to: "Overlaying 2D kernel density plots on scatterplot matrix"
2007 Aug 30
2
Need help putting histograms on the diagonal of a splom plot
Hello,
I am in need of help in putting histograms on the diagonal of a plot
produced with splom().
The plot matrix I am trying to produce is to have standard scatterplots
in the upper-left triangle, contour plots in the lower-right triangle,
and histograms on the diagonal. I have a function that does the first
two, but the histograms on the diagonal has been beyond my ability.
Here is my
2009 Jul 02
1
superimpose multiple scatterplot matrices
Dear R- experts,
I am trying to superimpose two or more scatterplot matrices generated by pairs() to visualize the differences over each datasets, but have not been very successful. Two data frames, df1 and df2 for example, each has the same five variables in columns.
My goal is to paint each dataset with a color on the same plot panel for each pair of the five variables.
That is, in this
2008 Oct 21
1
Scatterplot Matrix
Is there any way to make the points on my scatterplot matrix correspond to numbers instead of dots? I know how to do this on a regular 2-variable scatterplot but not on the matrix. Thanks!
-Lydia
[[alternative HTML version deleted]]
2007 Feb 14
3
Putting splom in a function
Hello R list,
I have a little problem with splom. I'd like to wrap it in a
function, for example:
multi.scatterplot <- function(data,groups,cols,colors) {
splom(~data[,cols], groups = as.symbol(groups), data = data, panel
= panel.superpose, col=colors)
}
and then call it like in
multi.scatterplot(iris,"Species",1:4,c("green","blue","red"))
2004 Mar 03
2
Changing background in splom et al.
Context: Windows XP, R 1.8.1
I'm studying Venables-Ripley "MASS" book and having a go at the many examples
in library MASS. The code I'm checking (from script ch04.R) now is
......
data(swiss)
splom(~ swiss, aspect = "fill",
panel = function(x, y, ...) {
panel.xyplot(x, y, ...); panel.loess(x, y, ...)
}
)
which produces an agreable plot with a gray
2006 May 11
1
Conditional contour plots for estimated density functions using Lattice
Does anybody here have a suggestion for a clever way of creating contour
plots for estimated bivariate density functions conditional on a factor?
The contourplot function in the 'lattice' package only accepts data that
are on the form 'z ~ x * y', not on the form 'x,y' or 'y~x'; otherwise I
could probably have used the panel function to do the needed conversion.
2010 Nov 11
1
change axis labels and text size in "splom"
Hi everyone:
I'm using "splom" to draw scatterplot matrix. I'm wondering how can I change the axis labels to c(1,10,100,1000,...)
instead of c(1,2,3,...), and also how can I change the text size (for labels)?
Thanks a lot!
xcui
2004 Dec 23
3
combination of scatterplot and image graph
Dear R users,
I'm interested in a combination of a scatterplot and an image graph.
I have two large vectors. Because in the scatterplot some areas are
sparsely and others densely populated, I want to see the points, and
I also want their color to be changed based on their density (similar
to a heat map). Is there a function that can do that?
Thank you,
b.
2011 Jan 20
2
circular reference lines in splom
Hello everyone,
I'm stumped. I'd like to create a scatterplot matrix with circular
reference lines. Here is an example in 2d:
library(ellipse)
set.seed(1)
dat <- matrix(rnorm(300), ncol = 3)
colnames(dat) <- c("X1", "X2", "X3")
dat <- as.data.frame(dat)
grps <- factor(rep(letters[1:4], 25))
panel.circ <- function(x, y, ...)
{
circ1
2012 Apr 10
0
Scatterplot matrix with partly transformed axis
Hi,
I am wondering if anybody has experience with
scatterplot matrices where some (but NOT all) axis
are transformed and the labels are nicely plotted.
So far I looked into
1) pairs()
2) scatterplotMatrix() from package 'car'
3) splom() from packagae 'lattice'
4) plotmatrix() from 'ggplot2'
I can see no easy way to get what I want which is:
*) a scatterplot matrix of
2010 Feb 22
4
Diablo 2 greyscale WINE 1.1.31
I am having difficulty getting D2 w/ LOD 1.12 to run in colour through wine. I am running a ASUS eeepc 701 w/ the cpu running at 900mhtz and 2gb of ram. OS is Ubuntu 9.10 netbook edition and the game is installed on a Western Digital Elements 1tb hdd connected through usb 2.0 and I had to install the GLIDE3toOpenGL-wrapper v 1.4d to get it to run at all.
The game runs fine, considering the
2007 Oct 02
1
splom pairs and groups argument
Hello,
I'm trying to pull off a certain graph using splom, and can't quite get my panel functions right.
Basically, the equivalent using pairs would be something like this (using iris data set as an example):
panel.corval <- function(x, y, digits=2, prefix="", cex.cor,col,pch)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
2007 Dec 18
9
Scatterplot Showing All Points
Hello all,
I'm trying to graph a scatterplot of a large (5,000 x,y coordinates) of data
with the caveat that many of the data points overlap with each other (share the
same x AND y coordinates). In using the usual "plot" command,
> plot(education, xlab="etc", ylab="etc")
it seems that the overlap of points is not shown in the graph. Namely, there
are
2011 Aug 02
3
Clean up a scatterplot with too much data
I'm working with a lot of data right now, but I'm new to R, and not very good
with it, hence my request for help. What type of graph could I use to
straighten out things like...
http://r.789695.n4.nabble.com/file/n3711389/Untitled.png
...this?
I want to see general frequencies. Should I use something like a 3D
histogram, or is there an easier way like, say, shading? I'm sure these
2007 Aug 01
1
Splom custom superpanels
I thought one nice addition to a splom figure would be to have the
scatterplots in the upper triangle and a color-coordinated
correlation matrix on the bottom. So I tried my hand at customizing
panel.pairs(), and was rebuffed. Many times. Four hours of
fruitless debugging later, I turn to you for help:
panel.pairs(z=teststatfull[,6:12], pscales=0,
panel.subscripts=FALSE, subscripts=,
2012 Nov 07
1
change colour of geom_step by scale_colour_manual
Hi,
Color of my step plot is now by default. Now I'd like to change the color as
the grey scale I specified. I don't know why I got three black plot. Here I
attach two version of codes. The first one produces a step plot with color
by default. The second one, modified from the first one, is not producing
the grey scale I want. Any help would be highly appreciated.
[version 1- working]
2010 Jul 07
3
Boxplots over a Scatterplot
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological stage information for fossil protists) and have
plotted them in a basic scatter plot. I also added a boxplot to overlay
these points. Each worked fine independently, but when I attempt to
superimpose them with add=true, I get a different scale for
2010 Apr 25
1
categorical variable in scatterplot (car)
Hello R folks,
I am encountering a problem with the following scatterplot function from the
car package:
> scatterplot(y~x|z)
where y and x are continuous (interval) random variables and z is a
categorical variable. When z is a categorical variable coded 1 or 2, I
(appropriately) get a scatterplot of y by x, coded by z. Similarly, when z
is a categorical variable coded 1, 2, or 3, there is
2011 Nov 07
0
Adding lines to scatterplot odd result when creating multiple plots
Dear R helpers
I'm attempting to create a matrix of scatterplots with X-Y mean lines and
regression lines added to each plot in the matrix. I have managed to create
the first plot I would like using scatterplot but have run into an odd
result when I use par() to set up the page to take multiple plot.
Specifically, the mean and regression lines appear to plot in the second
plot window, not
2011 Dec 09
1
Fixed! Thanks all:RE: scatterplot to boxplot translation?
Thanks to David and Jorge - both of your helpful suggestions got me to the desired endpoint. In case anyone else has this question: I boxplotted my y variable data, but did the "cut" operation on the x variable in order to conserve the order of the y data. I see another suggestion coming in from another user that basically says this.
So, my working line of code was:
boxplot(count$RPKM