Displaying 20 results from an estimated 10000 matches similar to: "combining pairs plot with other plots in one output"
2009 Feb 03
1
pairs() help - colour histograms on diagonal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'd like to be able to colour histograms along the diagonal using the colours
stored in colnames(d):
> d
black blue brown cyan
1 0.96405751 -0.02964390 -0.060147424 -0.06460070
2 -0.03614607 0.95475444 -0.152382053 -0.07767974
3 -0.07095613 -0.05884884 -0.061289399 -0.06445973
4 -0.03708223 -0.05997624
2010 Aug 31
1
"pairs" with same xlim and ylim scale
Hi list,
I have a function which basically is a wrapper of pairs with some useful panel
functions. However, I'm having trouble to pass the "xlim" and "ylim" into the
function so the x and y axes are in the same scale and 45 degree lines are
exactly diagonal. I've looked at some old posts, they didn't help much. I
think this is b/c I have multiple panel
2008 Mar 17
3
Creating plots for all variables in a data frame and printing them with the variable name in the main title
Dear all,
I'm just trying to create plots for all variables in a dataframe (named
"x") using the following:
png()
apply(x,2,hist)
Just as intended, it produces one plot for each variable. Unfortunately,
the main title of each graph is "Histogram of newX[,i]" instead of
"Histogram of name of variable". This makes it impossible to assign the
graphs to the
2013 Feb 23
1
Help with layout
Dear R users.
I'm new with layout and I can't figure how to teak my graphs.
I have the following code:
layout(matrix(c(1,2,3), 3, 1, byrow = TRUE), heights=c(0.3,0.3,0.6))
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE)
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE)
hist(rnorm(100))
Is it possible to have the two horizontal boxplot closer to each other?
With regards,
Phil
2006 Sep 28
3
complex plots using layout()
Dear r-help,
I am trying to plot several scatter plots with marginal histograms on
one page. Ideally, a page is equally divided into 4 figure regions.
Within each figure region, a scatter plot with marginal histograms will
be plotted.
I followed Dr. Paul Murrell's code released online to successfully plot
the scatter plot with marginal histograms. The code applies "layout()"
to
2010 Jun 08
1
color of histgram in Psych package (pairs.panels)
Hello,
I searched the archives but found no answers.
How to modify the hisgram color of function pairs.panels of Psych package ?
I tried col() but it was the line color modified.
Thanks.
Elaine
[[alternative HTML version deleted]]
2009 Jun 04
1
hist returning density larger than 1
The following code is giving me problems. I want to export densities
of a distribution to a csv file. At the bottom of the code I use the
hist function to generate the densities. But hist is returning values
greater than 1. I don't understand, why. Any help you can supply is
greatly appreciated.
# Set word path
dir<-"~/Research/MR Distribution Analysis/"
setwd(dir)
2010 Sep 21
5
Combined plot: Scatter + density plot
Hi,
in order to save space for a publication, it would be nice to have a
combined scatter and density plot similar to what is shows on
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=78
I wonder if anybody perhaps has already developed code for this and is
willing to share. This is the reproducible code for the histogram
version obtained from the site:
def.par <-
2009 Mar 17
1
Need a little help setting the upper median using "layout"...
The code I'm using is shown below.
I would like to have a larger median at the top of the plot so that I can show the entirity of "title_text".
Several times I tried messing with "par(mar", but that seemed to make matters worse.
By any chance can anyone provide any insight as to the best way to increase the top/upper/northern margin, so the entirity of the title is
2013 Oct 10
1
pairs plot
my data are matrix with 3 numeric columns.
would like to have pairs plot
with scatterplots in the upper
with hist at the diag
and with correlation at the lower.
actually default pairs does almost what I want but looks semi awesome.
Especially, i didn't find out how to remove the axes from the lower
part where I do only want to display the numeric values correlations
there and somehow axes
2003 Jul 27
1
Drawing boxplots in pairs function
I tried the following command to produce boxplot of diagonals in pairs
function:
> pairs(t1.5,diag.panel=boxplot)
Error in pairs.default(t1.5, diag.panel = boxplot) :
The panel function made a new plot
The graphics device draws two graphs, one with a rectangle at (1,1) in 7x7
layout and the other with boxplot(t1.5$wind) at (1,2).
pairs function help file has a similar example with
2005 Nov 08
3
how to draw cumulative histogram
Hello there,
I am using R to plot some cumulative histogram for my data. Please help
in this case.
Thank you
Lisa Wang
Princess Margaret Hospital
Toronto
phone 416 946 4501 ext.4883
2010 Oct 07
1
Lattice: Histogram in splom diagonals
Dear list, I want to plot several variables with splom and in the main
diagonal, instead of the variable names, I'd like to plot an histogram of
corresponding variables. Searching I did not find the correct syntax, only
some tips in an old post in the list, but this comments help to plot only
density lines instead of histograms. I had some code, but it fails to plot
(I've commented the
2011 Mar 13
1
problem with looping formula through table
Dear useRs,
I am stuck with a piece of code and hope you could give me some pointers.
My aim is to calculate the lm-regression coefficients of individual stocks against an index. I am interested in both the coefficient and the pval. While I could do this manually for a select hand full, I hope to scale this up say for 30+ stocks (DAX-30, FTSE-100 etc.) to eventually have a matrix of coefficients
2004 Dec 03
2
Label data points in scatterplot matrices
Hello,
I am new to R and would like to know how to label data points in the
matrices of scatterplots made by the pairs() command.
To be more specific, I want to assign a number to each data point, instead
of the small circumference that appears as a data point.
If anyone here knows if its possible to do this with R, I would greatly
appreciate your help.
Thank you,
Mauricio Esguerra
PhD
2002 Feb 07
2
FW: layout and piechart diameter problem (PR#1300)
Third try...
> -----Original Message-----
> From: Warnes, Gregory R
> Sent: Tuesday, February 05, 2002 4:12 PM
> To: 'R-bugs'
> Subject: layout and piechart diameter problem
>
>
> I've been using layout to create some graphics pages which include pie
> charts. (NB: No piechart arguments please, the main chart on the page is
> a proper bar chart
2010 Feb 16
1
difftimes; histogram; memory problems
Hi All:
Let's say I have two dataframes (Condition1 and Condition2); each
being on the order of 12,000 and 16,000 rows; 1 column. The entries
contain dates.
I'd like to calculate, for each possible pair of dates (that is:
Condition1[1:10,000] and Condition2[1:10,000], the number of days
difference between the dates in the pair. The result should be a
matrix 12,000 by 16,000. Really,
2008 Sep 22
1
SmoothScatter plot range issue
Hello,
I am attempting to use smoothScatter to plot a heatmap of locations of
events in an x-y axis. When I plot the heatmap without passing xlim and ylim
parameters, it fills the plot area but the perspective is a bit skewed. I
would like to standardize these plots to a uniform window size that does not
depend on the range of values in the dataframe. However, when I resize the
plot using xlim or
2007 Jun 19
1
: create a PDF file (text (print list) and grafics)
Dear helpers,
I need help to create a PDF file like the example
-----------------------------------
| Title |
-----------------------------------
| |
| Text (print a list) |
| |
-----------------------------------
| | |
| | |
| image | image |
| | |
| | |
-----------------------------------
2010 Jun 25
1
Trying to tile wireframe plots (using lattice package)
Hi all,
I'm trying to print a number of wireframe plots (generated using the
lattice package), and I want them to appear in a two-by two matrix along
with some other (standard) plots. In other words I am trying to create a
subplot or tiled plot that works for wireframes.
I've tried the methods discussed in:
http://tolstoy.newcastle.edu.au/R/e2/help/07/07/21238.html
but while they work