similar to: pairs plot and legend

Displaying 20 results from an estimated 60000 matches similar to: "pairs plot and legend"

2001 Sep 25
2
pairs() Legend
Hi, Is it possible to create a legend in a pairs() plot? For example, suppose I have the following R codes: data(iris) pairs(iris[1:4], main = "Anderson's Iris Data -- 3 species", pch = 21, bg = c("red", "green3", "blue")[codes(iris$Species)]) How can I created a legend that shows which colour represents to which Iris species? Thanks,
2003 Jul 10
1
Add a legend to a pairs plot??
All, Can someone tell me if it is possible to add a legend to a plot produced with pairs()? I have an example akin to plotting the iris data given in the pairs help and would like to show what the symbols refer to somewhere. Thanks.
2003 Apr 15
2
troubles with displaying legend on the plot
Dear colleagues, I have troubles while trying to display legend on the plot. I have data.frame fr > fr year M1 M2 1 1979 58.85198 56.77303 2 1980 57.59725 55.93749 3 1981 57.32133 55.55232 4 1982 54.69320 53.10566 5 1983 56.58973 55.03811 6 1984 58.81363 56.97641 7 1985 58.35583 56.82091 8 1986 60.41842 58.45457 9 1987
2001 Jul 25
2
pch with plot and legend
I'm trying to plot a scatterplot of two variables using pch to plot different characters based on a third factor. Here is my example > data("ToothGrowth") > attach(ToothGrowth) > levels(supp) [1] "OJ" "VC" > plot(len ~ dose,pch=as.numeric(supp)) > legend(locator(1),pch=as.numeric(supp),legend=levels(supp)) The command as.numeric(supp) returns 2 2
2012 Feb 15
2
assign same legend colors than in the grouped data plot
Dear community, I've plotted data and coloured depending on the factor variable v3. In the legend, I'd like to assign properly the same colors than in the factor (the factor has 5 levels). I've been trying this but it doesn't work. plot(var1, var2, xlab = "var1", ylab = "var2", col =var3 , bty='L') legend(locator(1),c("level 1 var3",
2005 Aug 04
1
Merlin Legend
I have a legacy pbx that I know nothing about. The PBX is a merlin legend system (now owned by avaya). I have found information on the list that I can use a 100D T1 card to bridge the PBX to an asterisk system. We are looking to head this route as well as replacing are AUDIX VM system with Asterisk. Has anyone done this that wouldn't mind sharing some of the merlin specific setup?
2004 Dec 09
4
Create a plot legend in a new window
Hi I have a complicated plot which has a potentially large legend. What I want to do is actually create the legend in a new window. Has anyone done this before? I'd like to be able to create a window with just the legend in it, and have it so the window is just the right size etc. I'm sure someone must have done this already? If not, any tips would be welcome. Thanks Mick
2005 Aug 22
1
How to add legend of plot.Design function (method=image)? (if (!.R.) )
Hi, When running z <- plot(fit, age=NA, cholesterol=NA, perim=boundaries, method='image') Legend(z, fun=plogis, at=qlogis(c(.01,.05,.1,.2,.3,.4,.5)), zlab='Probability') And after pointing the cursor to the plot() screen in R, I obtain the following message: Using function "locator(2)" to place opposite corners of image.legend Error in
2011 Jul 10
3
change legend character size in image.plot
I'm using the image.plot() function (fields package), but I want to enlarge the characters of the legend (as they are too small to be read in a combined figure), but there is no way I can find a command to do this. I can enlarge the legend bar (with legend.witdh), axis character size (cex.axis) or the total legend size (legend.shrink), but not the character size of the legend characters
2007 Jun 22
1
Barchart legend position
I am using barchart to make charts for some data with a lot more functions and labels and such in the command. barchart(Freq ~ factor(HH), data = dataset1, group= year) So I have my data grouped by year and I get a legend at the top of graph, which is great cause I need the legend for the different years but it is a weird spot. So how can I manipulate the legend, ie. Move it, shrink it, do
2005 Jun 30
1
FW: plot legend outside the grid
-----Original Message----- From: Ghosh, Sandeep Sent: Thursday, June 30, 2005 5:43 PM To: 'Berton Gunter' Subject: plot legend outside the grid Thanks for the pointers... I managed to get everything to look and feel the way I want except for the legend to plot outside the grid... Thanks for the note on the par, but I'm not able to it to plot outside the plot grid.. dataFrame <-
2003 Feb 24
3
Legend in plot: symbol for mean and standard deviation
Dear list, I am facing the following problem with the legend of a plot that display the mean and variance of a measurement y as a function of x, the mean being represented by a dot and the variance by a vertical line. My problem is that I am unable to display the symbol (dot + vertical line) in the legend. any help is welcome, thanks marco --
2007 Aug 28
2
Limiting size of pairs plots
Dear R-users, I would like to add a legend at the bottom of pairs plots (it's my first use of this function). With the plot function, I usually add some additional space at the bottom when I define the size of the graphical device (using mar); grid functions then allows me to draw my legend as I want. Unfortunatley, this technique does not seem to work with the pairs function as the
2012 Mar 08
3
legend
Hi, A very simple thing that I'm unable to do. I did look at the help but .... While putting a legend on a plot, I don't wish to have the enclosing border surrounding the words (as given below). Tried to use the following, but didn't help : legend (locator(1), border=FALSE, fill=FALSE, "Important ones") legend (locator(1), border=NILL, fill=NILL, "Important
2008 Sep 04
2
Adding a legend to R graph device with several plots (no to individual plots!)
Dear Users, I already posted this question: it either went unnoticed, or it is to basic (if this is so, please sent me a hint). I would like to know if there is a way to add a common legend to an arrangement of plots. In the example below, I get four plots in my device. each one has a density for 1995 and one for 2006. I have found that using legend or smartlegend I can add a legend to each plot,
2008 Sep 30
1
Adding legends to a plot
Hello, I have a time series plot drawn using 3 different colored lines, each line corresponds to different category group. I'd like to put legends on the plot. I am using "legend" to do this, however, I can either specify lty or col in legend. Will I be able to do the following in the legend box: a solid black line then g1, a solid red line then g2, a solid blue line then g3?
2003 Jul 01
3
lines and legend
When I am trying to put a legend on a plot where I am using "lines", R just ignores it. I can do it with boxplot or plot, but just not with lines. Am I doing something wrong? Maybe I am just making a mistake? Anna
2009 Dec 18
2
Legend for two plots
Dear R users, I am new to R and I couldn't figure out how to solve the following problem: I am trying to put a legend below two plots using the code below. The legend appears in the second plot, but I want the legend to appear below the two plots in the center of the total chart. At the moment the graphic looks like this: http://i48.tinypic.com/2h2fvhf.jpg [code] layout(matrix(1:2, nrow=1))
2003 Feb 13
2
legend
I think I'm missing something tonight in the usage of 'legend': plot(0, type="n") legend(locator(1), month.abb[1:5], pch=15, col=1:5) gives me something similar to what I want. But legend(locator(1), month.abb[1:5], fill=T, col=1:5) gives me 5 black boxes. What am I doing wrong? Thank you, > version _ platform i686-pc-linux-gnu arch i686 os
2001 May 20
2
legend() with xpd=T; omission of initial plot character (PR#943)
In the following: plot(0:1, 0:1) legend(x=0, y=1.2, pch=c(1,2), legend=c("May","June")) the first plot character is omitted when plotting to the screen. I obtained the same behaviour when placing a legend in the margin following use of pairs() -please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = x86 os = Win32 system = x86, Win32