Re: [R] Labeling Stacked Bar Plots Representing Percentages with Count Data

2019-11-17 Thread Rui Barradas
Hello, It's dificult to tell without data. Can you post the output of dput(head(tagSummary, 20)) # or 30 ? (If it's private data, something mimicking its structure.) Rui Barradas Às 02:06 de 18/11/19, Josh B escreveu: Hello Rui, I worked through your suggestion and appear to be getting an

Re: [R] Labeling Stacked Bar Plots Representing Percentages with Count Data

2019-11-16 Thread Jim Lemon
Hi Josh, I couldn't work out how to do this in ggplot, but here is a possible solution: tagSummary<-read.csv(text="speciesSci,recvDeployName,nDet Arenaria interpres,Bucktoe Preserve,96 Arenaria interpres,CHDE,132 Arenaria interpres,Fortescue,22133 Arenaria interpres,Mispillion,2031 Arenaria i

Re: [R] Labeling Stacked Bar Plots Representing Percentages with Count Data

2019-11-16 Thread Rui Barradas
Hello, In geom_text change to position = position_fill(vjust=0.5). What's important is to have position = "fill" in geom_bar match geom_text. Something like : library(dplyr) library(ggplot2) data(mtcars) mtcars %>% group_by(cyl, gear) %>% summarise(count = n()) %>% ggplot(aes(factor(cyl

[R] Labeling Stacked Bar Plots Representing Percentages with Count Data

2019-11-15 Thread Josh B
Hello, I am trying to include the count labels on stacked bar plots which represent percentages. I want to show x-amount of individuals make up the graphed percentages. However, when I include the count labels my y-axis gets blown out of proportion because it changes to match the count data, not t

Re: [R] Labeling Dates of different length on two in axis plot

2019-08-25 Thread Ogbos Okike
Dear Bert and Jim, Here is the code: data <- read.table("CLMX.txt", col.names = c("year", "month", "day", "CLMX")) new.century <- data$year < 50 data$year <- ifelse(new.century, data$year + 2000, data$year + 1900) data$date <- as.Date(ISOdate(data$year, data$month, data$day)) x1 = data$date L

Re: [R] Labeling Dates of different length on two in axis plot

2019-08-25 Thread Ogbos Okike
Dear Jim and Bert, Thank your for looking into this for me. I will try to reproduce a part of my data and the plot I have. Data 1: 53 01 02 -1.28792560381641 53 01 06 -1.1854773963453 53 01 08 -1.55920165458006 53 01 15 -1.29196482429683 53 01 20 -1.06082194329819 53 01 22 -1.15430411152234 53 01

Re: [R] Labeling Dates of different length on two in axis plot

2019-08-25 Thread Bert Gunter
I think you will need to show us your code to get useful help (see the posting guide). A small subset of your data and a reprex may also be needed. R has several different graphics systems, and the answer depends on which you are using. In base graphics, the axis() function (see its Help page) may

Re: [R] Labeling Dates of different length on two in axis plot

2019-08-25 Thread Jim Lemon
Hi Ogbos, Hope things are going well for you. Perhaps this is what you want: date_x1<-seq(as.Date("1953-01-02"),as.Date("2006-11-15"),length.out=8) value_x1<-sample(1000:5000,8) date_x2<-seq(as.Date("1957-07-26"),as.Date("1994-07-17"),length.out=6) value_x2<-sample(0:1000,6) plot(date_x1,value_x1,

[R] Labeling Dates of different length on two in axis plot

2019-08-24 Thread Ogbos Okike
Dear Contributors, I have two dataset of different lengths, each containing year, month, day and counts. After converting the date using as.Date function, I plotted the two dateset on one graph. That was fine. I am, however, having problems with the axis 1 where I am trying to put the dates. Since

Re: [R] Labeling world map

2015-07-25 Thread Ray Brownrigg
On 24/07/2015 7:37 p.m., sreenath wrote: I draw world map using library(maptools) library(ggmap) library(mapdata) library(maps) map("world",fill=TRUE,col="White",bg="light blue",ylim=c(-60,90),mar=c(0,0,0,0)) native <- c("brazil","sao paulo state") nat <-geocode(native) nat.x <- nat$lon nat.

[R] Labeling world map

2015-07-24 Thread sreenath
I draw world map using library(maptools) > library(ggmap) > library(mapdata) > library(maps) >map("world",fill=TRUE,col="White",bg="light blue",ylim=c(-60,90),mar=c(0,0,0,0)) >native <- c("brazil","sao paulo state") > nat <-geocode(native) >nat.x <- nat$lon > nat.y <- nat$lat >points(nat.x,nat.y,c

Re: [R] Labeling/identifying observations in plot after MclustDR from Mclust

2014-04-21 Thread Jim Lemon
On 04/17/2014 01:01 PM, Mark Manger wrote: Hi, I’m trying to figure out how to label points in a contour plot produced from the output of MclustDR, the dimension reduction function in the Mclust package. The original data frame has row names RRcoarse govtDeficitres_gdp Gro

[R] Labeling/identifying observations in plot after MclustDR from Mclust

2014-04-16 Thread Mark Manger
Hi, I’m trying to figure out how to label points in a contour plot produced from the output of MclustDR, the dimension reduction function in the Mclust package. The original data frame has row names RRcoarse govtDeficitres_gdp GrossFixedCapForm_UN fuelExports AUS_762.000

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-24 Thread David Winsemius
On Oct 24, 2013, at 3:56 PM, Hurr wrote: > Thanks David, did I use incorrect english to call "e" a > formula or function? Incorrect R terminology. A function in R is a specific sort of object and a formula is a different sort of object. R terminology for the use of "labels = 1/xvalue" inside

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-24 Thread Hurr
Thanks David, did I use incorrect english to call "labels = 1/xvalue" a formula or function? Seems to me an obvious first try would be to place the labels where they would have been placed without the formula. I haven't yet, but I will study from your suggestions. -- View this message in conte

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-24 Thread Jim Lemon
On 10/25/2013 01:00 AM, Hurr wrote: Thanks Jim, maybe now I can start learning. Here is a run of my trying to learn: xvalue<-c(5.2,1.3,9.7,2.8,8.1,4.7,6.6,7.4) yvalue<-c(9,3,4,7,2,5,3,6) plot(xvalue,yvalue) axis(1,at=NULL,labels=1/xvalue,digits=5) Error in axis(1, at = NULL, labels = 1/xvalue,

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-24 Thread David Winsemius
On Oct 24, 2013, at 7:00 AM, Hurr wrote: > Thanks Jim, maybe now I can start learning. > Here is a run of my trying to learn: >> xvalue<-c(5.2,1.3,9.7,2.8,8.1,4.7,6.6,7.4) >> yvalue<-c(9,3,4,7,2,5,3,6) >> plot(xvalue,yvalue) >> axis(1,at=NULL,labels=1/xvalue,digits=5) > Error in axis(1, at = NULL

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-24 Thread Hurr
Thanks Jim, maybe now I can start learning. Here is a run of my trying to learn: > xvalue<-c(5.2,1.3,9.7,2.8,8.1,4.7,6.6,7.4) > yvalue<-c(9,3,4,7,2,5,3,6) > plot(xvalue,yvalue) > axis(1,at=NULL,labels=1/xvalue,digits=5) Error in axis(1, at = NULL, labels = 1/xvalue, digits = 5) : 'labels' is supp

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-24 Thread Hurr
Thanks Jim, maybe now I can start learning. Next I want to use my choice of n digits or width instead of round. -- View this message in context: http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4678075p4678946.html Sent from the R help mailing list archiv

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-23 Thread Jim Lemon
On 10/24/2013 01:49 PM, Hurr wrote: Sorry, I wasn't aware that it was that difficult. Here is the example scatter plot data: xvalue,yvalue 1,9 2,3 3,4 4,7 5,2 6,5 7,3 8,6 Please show me how to label the x axis with 1/xvalue. Hopefully, R plotter takes care of spacing, but maybe not. Hi Hurr, ho

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-23 Thread Hurr
Sorry, I wasn't aware that it was that difficult. Here is the example scatter plot data: xvalue,yvalue 1,9 2,3 3,4 4,7 5,2 6,5 7,3 8,6 Please show me how to label the x axis with 1/xvalue. Hopefully, R plotter takes care of spacing, but maybe not. Thanks -- View this message in context: http:/

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-23 Thread Jeff Newmiller
Not without a reproducible example. You can Google for suggestions about how to do that, with one result being [1]. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff Newmiller

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-23 Thread Hurr
I studied the "Add an Axis to a Plot" document but I can't figure out where the 1/trueScaleValue goes. Would someone help me? -- View this message in context: http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4678075p4678917.html Sent from the R help mai

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-11 Thread Hurr
Thanks. -- View this message in context: http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4678075p4678103.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https

Re: [R] labeling abscissa using a function of the plotted scale

2013-10-11 Thread David Winsemius
On Oct 11, 2013, at 9:48 AM, Hurr wrote: > Is it easy or difficult to label the abscissa of a scatter graph as > 1/trueScaleValue at that point? It's easy. ?axis > > -- > View this message in context: > http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4

[R] labeling abscissa using a function of the plotted scale

2013-10-11 Thread Hurr
Is it easy or difficult to label the abscissa of a scatter graph as 1/trueScaleValue at that point? -- View this message in context: http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4678075.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] labeling

2013-04-26 Thread Jim Lemon
On 04/26/2013 10:15 PM, Shane Carey wrote: Hi, I have a dataset as follows: Name N Visean limestone& calcareous shale 2 Visean sandstone, mudstone& evaporite 2 Westphalian shale, sandstone, siltstone& coal How do I combine them so that I can labe

[R] labeling

2013-04-26 Thread Shane Carey
Hi, I have a dataset as follows: Name N Visean limestone & calcareous shale 2 Visean sandstone, mudstone & evaporite 2 Westphalian shale, sandstone, siltstone & coal How do I combine them so that I can label a plot with Visean limestone & calcareous sha

Re: [R] Labeling a range of bars in barplot?

2012-12-02 Thread rahul143
Marc Schwartz (via MN) wrote: > On Tue, 2005-12-13 at 10:53 +, Dan Bolser wrote: > >>Hi, I am plotting a distribution of (ordered) values as a barplot. I >>would like to label groups of bars together to highlight aspects of the >>distribution. The label for the group should be the range of

Re: [R] Labeling position barchart

2012-11-12 Thread Geophagus
Hi and thanks a lot for your advices. Both work fine! Thanks GeoPhagUS -- View this message in context: http://r.789695.n4.nabble.com/Labeling-position-barchart-tp4649031p4649294.html Sent from the R help mailing list archive at Nabble.com. __ R-hel

Re: [R] Labeling position barchart

2012-11-10 Thread Jim Lemon
On 11/09/2012 10:33 PM, Geophagus wrote: Hi @ all, I try to set a labeling on simple barchart. I do it with the text function. I want to see values of the x axis (BE_AKT$ammo) above the bars. When I try the following code, the values are shown, but not in the correct position. They should be labe

Re: [R] Labeling position barchart

2012-11-09 Thread Sarah Goslee
You told us neither what you did, nor what was not as you expected. Nonetheless, try this example: x <- c(9, 5, 7) mybarplot <- barplot(x, ylim=c(0, 10)) text(mybarplot, x+.08, letters[1:3], pos=3) Sarah On Fri, Nov 9, 2012 at 6:33 AM, Geophagus wrote: > Hi @ all, > I try to set a labeling on

[R] Labeling position barchart

2012-11-09 Thread Geophagus
Hi @ all, I try to set a labeling on simple barchart. I do it with the text function. I want to see values of the x axis (BE_AKT$ammo) above the bars. When I try the following code, the values are shown, but not in the correct position. They should be labeled 0.08 above the bars. text(BE_AKT$ammo,

Re: [R] labeling loading vectors in vegan

2012-07-31 Thread Gavin Simpson
On Fri, 2012-07-27 at 11:52 -0700, Gordon Holtgrieve wrote: > Hello, > > I am using vegan to do an NMDS plot and I would like to suppress the labels > for the loading vectors. Is this possible? Alternatively, how can I avoid > overlap? Hi Gordon, You seem to be trying to fit the species scores

[R] labeling loading vectors in vegan

2012-07-27 Thread Gordon Holtgrieve
Hello, I am using vegan to do an NMDS plot and I would like to suppress the labels for the loading vectors. Is this possible? Alternatively, how can I avoid overlap? Many thanks for the help. Example code: #perform NMDS using metaMDS() function spe.nmds<-metaMDS(data, distance='bray',k=2 , eng

[R] labeling rows in heatmap.2

2012-03-20 Thread 1Rnwb
how can i put the row labels on the left hand of the heatmap in heatmap.2? abnr<-structure(c(1, 0.678622097406395, 0.670294749652918, -0.0016314464654279, -0.000519068106572792, 0.199581999119988, -0.0106623494189115, 0.0840111691399559, -0.0461494399639137, 0.249279171677728, NA, 1, 0.75711406

Re: [R] labeling outliers with subject numberss

2010-09-15 Thread Peter Ehlers
Kevin, On 2010-09-15 16:37, Phil Spector wrote: Kevin - Here's one way: z = boxplot(mydata$score,outline=FALSE,ylim=range(mydata$score)) text(1,z$out,SubNo[which(score == z$out)]) - Phil Spector Statistical

Re: [R] labeling outliers with subject numberss

2010-09-15 Thread Phil Spector
Kevin - Here's one way: z = boxplot(mydata$score,outline=FALSE,ylim=range(mydata$score)) text(1,z$out,SubNo[which(score == z$out)]) - Phil Spector Statistical Computing Facility

Re: [R] labeling outliers with subject numberss

2010-09-15 Thread Clint Bowman
SubNo[identify(rep(1,8),mydata$score)] -- Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600FAX:(360) 407-7

[R] labeling outliers with subject numberss

2010-09-15 Thread Kevin Burnham
How can I get the outlier in this boxplot of "Score" to be represented by the corresponding value in "SubNo"? score=c(6,6,7,14,5,7,6,8) SubNo=1:8 mydata=data.frame(SubNo, score) boxplot(mydata$score) Thanks! Kevin [[alternative HTML version deleted]] ___

Re: [R] Labeling plot points

2009-12-11 Thread Doug Hill
n...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Doug >> Sent: Thursday, December 10, 2009 1:49 PM >> To: r-help@r-project.org >> Subject: [R] Labeling plot points >> >> >> Hi, all. I've been searching for a while to find out how to c

Re: [R] Labeling plot points

2009-12-11 Thread Doug Hill
g) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Doug >> Sent: Thursday, D

Re: [R] Labeling plot points

2009-12-10 Thread Doug Hill
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Doug >> Sent: Thursday, December 10, 2009 1:49 PM >> To: r-help@r-project.org >> Subject: [R] Labeling plot points >> >> >> Hi, all. I've been searching for a while to find o

Re: [R] Labeling plot points

2009-12-10 Thread Greg Snow
p@r-project.org > Subject: [R] Labeling plot points > > > Hi, all. I've been searching for a while to find out how to create an > scatterplot which would let a user interact with it, specifically by > hovering the mouse over a point and having a pop-up appear with data

[R] Labeling plot points

2009-12-10 Thread Doug
Hi, all. I've been searching for a while to find out how to create an scatterplot which would let a user interact with it, specifically by hovering the mouse over a point and having a pop-up appear with data about the point. The pop-up would disappear when the mouse moved away. I've included a moc

Re: [R] Labeling and calculating distance from points

2009-08-28 Thread KABELI MEFANE
Hi all   Can you help me label the points Si' s accordingly with subscripts, also to write a distance on between location S0   (0.5,0.5 ) and all order points Si  lines if i have this kind of code:   library(geoR) coords<-matrix(c(0,0,1,1,0,1,0,1), nrow=4, ncol=2) data<-c(3,5,6,4) coordata<-data.

Re: [R] labeling in qplot

2009-08-05 Thread ONKELINX, Thierry
ect.org] Namens Mohan S Verzonden: woensdag 5 augustus 2009 5:16 Aan: r-help@r-project.org Onderwerp: [R] labeling in qplot HI am plotting different density plots in one graph each with a different color. And i want to add labels to plot mentioning which color belongs to which data series. p2 &

Re: [R] labeling in qplot

2009-08-05 Thread Nikos Alexandris
On Tue, 2009-08-04 at 20:16 -0700, Mohan S wrote: > HI > > am plotting different density plots in one graph each with a different > color. > > And i want to add labels to plot mentioning which color belongs to which > data series. > > p2 <- qplot(corArms, data = data1, geom = "density", adju

[R] labeling in qplot

2009-08-04 Thread Mohan S
HI am plotting different density plots in one graph each with a different color. And i want to add labels to plot mentioning which color belongs to which data series. p2 <- qplot(corArms, data = data1, geom = "density", adjust=0.4, main="Arms Correlation All") + layer(data=data2, geom="densi

Re: [R] Labeling barplot bars by multiple factors

2009-05-29 Thread Jim Lemon
Thomas Levine wrote: Ah, that makes sense. But now another two issues have arisen. Firstly, the error bars look like confidence intervals, and I'm pretty sure that they are but does some document verify this? I suppose I could check the code too. Secondly, I just read about how dynamite plots s

Re: [R] Labeling barplot bars by multiple factors

2009-05-28 Thread Thomas Levine
>> [mailto:r-help-boun...@r-project.org] On Behalf Of Thomas Levine >> Sent: Thursday, May 28, 2009 5:04 AM >> To: Jim Lemon >> Cc: r-help@r-project.org >> Subject: Re: [R] Labeling barplot bars by multiple factors >> >> Both of those worked, but hierobarp l

Re: [R] Labeling barplot bars by multiple factors

2009-05-28 Thread Thomas Levine
Both of those worked, but hierobarp looked a bit easier, so I used that. The one annoying thing is that it sorts alphabetically. Tom On Thu, May 28, 2009 at 6:46 AM, Jim Lemon wrote: > Thomas Levine wrote: > >> I want to plot quantitative data as a function of three two-level factors. >> How do

Re: [R] Labeling barplot bars by multiple factors

2009-05-28 Thread Jim Lemon
Thomas Levine wrote: I want to plot quantitative data as a function of three two-level factors. How do I group the bars on a barplot by level through labeling and spacing? Here 's what I'm thinking of. Also, I'm pretty sure that I wa

Re: [R] Labeling barplot bars by multiple factors

2009-05-27 Thread Mike Lawrence
You can get something close with ggplot2: library(ggplot2) my_data = expand.grid( A = factor(c('A1','A2')) , B = factor(c('B1','B2')) , C = factor(c('C1','C2')) ) my_data$DV = rnorm(8,mean=10,sd=1) p = ggplot() p = p + layer( geom = 'bar' , stat = 'identity'

[R] Labeling barplot bars by multiple factors

2009-05-27 Thread Thomas Levine
I want to plot quantitative data as a function of three two-level factors. How do I group the bars on a barplot by level through labeling and spacing? Here 's what I'm thinking of. Also, I'm pretty sure that I want a barplot, but there

Re: [R] Labeling points on plot on relative warp scores?

2009-04-12 Thread Jim Lemon
stephalope wrote: Hi there, I am plotting relative warp scores (equivalent to pca scores) and I want to label (color code and shape) the points by group. I can't figure out how to do this beyond simple plotting. plot(RW1, RW2); Do I need to make vectors of each group and then plot them separ

Re: [R] Labeling points on plot on relative warp scores?

2009-04-11 Thread Uwe Ligges
Specify corresponding vectors for the argument "cex" and "pch". Best, Uwe Ligges stephalope wrote: Hi there, I am plotting relative warp scores (equivalent to pca scores) and I want to label (color code and shape) the points by group. I can't figure out how to do this beyond simple plottin

[R] Labeling points on plot on relative warp scores?

2009-04-11 Thread stephalope
Hi there, I am plotting relative warp scores (equivalent to pca scores) and I want to label (color code and shape) the points by group. I can't figure out how to do this beyond simple plotting. plot(RW1, RW2); Do I need to make vectors of each group and then plot them separately onto the same

Re: [R] labeling panels in lattice plots

2009-03-31 Thread Coltrey Mather
Converting rain.stats$year to a factor yields the results you seem to want: xyplot(rain.stats$min+ rain.stats$max + rain.stats$ave ~ rain.stats$month |as.factor(rain.stats$year), lty = 1, data = rain.stats, type = c("l","l", "l"), col = c("red", "blue", "green"), distribute.type = TRU

Re: [R] labeling panels in lattice plots

2009-03-31 Thread Steve_Friedman
...@nps.gov 03/31/2009 06:50 cc AM MSTr-help@r-project.org Subject Re: [R

Re: [R] labeling panels in lattice plots

2009-03-31 Thread Sundar Dorai-Raj
Try converting year to a factor xyplot(min + max + ave ~ month | factor(year), data = rain.stats, ...) Also, notice the inclusion of the "data" argument. HTH, --sundar On Tue, Mar 31, 2009 at 6:28 AM, wrote: > > I am using windows XP with R 2.8.1 > > > I am generating a lattice plot of annua

Re: [R] labeling panels in lattice plots

2009-03-31 Thread stephen sefick
would you mind creating a dummy data.frame or maybe dput() a smaller subset of the data frame? thanks Stephen Sefick On Tue, Mar 31, 2009 at 9:28 AM, wrote: > > I am using windows XP with R 2.8.1 > > > I am generating a lattice plot of annual rain patterns using the following > function: > > >>

[R] labeling panels in lattice plots

2009-03-31 Thread Steve_Friedman
I am using windows XP with R 2.8.1 I am generating a lattice plot of annual rain patterns using the following function: > xyplot(rain.stats$min+ rain.stats$max + rain.stats$ave ~ rain.stats$month |rain.stats$year, lty = 1, data = rain.stats, type = c("l","l", "l"), col = c("red"

Re: [R] Labeling points with xYplot

2008-11-10 Thread John Poulsen
That did it! Thanks for the help!!! -- John David Winsemius wrote: See if this does what you are expecting. xYplot(Cbind(b, b-1.5, b+1.5)~a, ylim=c(0,max(b)+3), panel=function(x,y,...){ panel.xYplot(x,y,subscripts=x,...) panel.superpose(x,y, subscripts=x, groups=x,...)

Re: [R] Labeling points with xYplot

2008-11-10 Thread David Winsemius
See if this does what you are expecting. xYplot(Cbind(b, b-1.5, b+1.5)~a, ylim=c(0,max(b)+3), panel=function(x,y,...){ panel.xYplot(x,y,subscripts=x,...) panel.superpose(x,y, subscripts=x, groups=x,...) ltext(x=list(1,2,3,4), y=list(13,14,15,16),

Re: [R] Labeling points with xYplot

2008-11-10 Thread John Poulsen
Yes, using panel.xYplot is the best thing to do. I couldn't get it to work, which probably means I was specifying it incorrectly. I would be very happy if someone had an example of how to do it. Thanks again -- John Frank E Harrell Jr wrote: John Poulsen wrote: Hello R-Users, I am trying

Re: [R] Labeling points with xYplot

2008-11-10 Thread Frank E Harrell Jr
John Poulsen wrote: Hello R-Users, I am trying to label points on an xYplot. I can label the points, but then I lose the error bars. I suspect that I should be using panel.xYplot rather than panel.xyplot, but that didn't work either... Can anybody help me out? Example code is below. Firs

[R] Labeling points with xYplot

2008-11-10 Thread John Poulsen
Hello R-Users, I am trying to label points on an xYplot. I can label the points, but then I lose the error bars. I suspect that I should be using panel.xYplot rather than panel.xyplot, but that didn't work either... Can anybody help me out? Example code is below. First xYplot has error b

Re: [R] Labeling lines in xyplot

2008-08-05 Thread John Poulsen
Deepayan, Thanks for your help, works great! Cheers -- John Deepayan Sarkar wrote: On Tue, Aug 5, 2008 at 11:15 AM, John Poulsen <[EMAIL PROTECTED]> wrote: Hello, I apologize in advance as this example seems really elementary. Below I have created a simple scatterplot with lines. I would l

Re: [R] Labeling lines in xyplot

2008-08-05 Thread Deepayan Sarkar
On Tue, Aug 5, 2008 at 11:15 AM, John Poulsen <[EMAIL PROTECTED]> wrote: > Hello, > > I apologize in advance as this example seems really elementary. Below I > have created a simple scatterplot with lines. I would like to label each > line with the name of the village, instead of using a legend.

[R] Labeling lines in xyplot

2008-08-05 Thread John Poulsen
Hello, I apologize in advance as this example seems really elementary. Below I have created a simple scatterplot with lines. I would like to label each line with the name of the village, instead of using a legend. Can someone please let me know how to do it. Thanks in advance -- John Po

Re: [R] Labeling a plot's x-axis with 12 strings, vertically oriented.

2008-05-21 Thread Duncan Murdoch
On 5/21/2008 2:56 PM, John wrote: Hello, I really enjoy using R for my plotting. I have a modest plot, containing 24 data points, across 2 lines,12 points each. Ideally, the x-axis would be labeled with a series of strings, oriented vertically. Here is the R container holding the Search strin

Re: [R] Labeling a plot's x-axis with 12 strings, vertically oriented.

2008-05-21 Thread Greg Snow
enter Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John > Sent: Wednesday, May 21, 2008 12:56 PM > To: r-help@r-project.org > Subject: [R] Labeling a plot's x-axis

[R] Labeling a plot's x-axis with 12 strings, vertically oriented.

2008-05-21 Thread John
Hello, I really enjoy using R for my plotting. I have a modest plot, containing 24 data points, across 2 lines,12 points each. Ideally, the x-axis would be labeled with a series of strings, oriented vertically. Here is the R container holding the Search strings: > Search [1] Route To: NCENGR

Re: [R] Labeling different kinds of dots

2008-01-25 Thread John Fox
, Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Svempa > Sent: January-25-08 6:56 AM > To: r-help@r-project.org > Subject: [R] Labeling different kinds

[R] Labeling different kinds of dots

2008-01-25 Thread Svempa
I have one graph with two linear plots, one where the points are marked with a triangle and the others marked with a dot. How do I label them in a legend for example, comparable to what you automatically get in Excel (sorry for the comparison people), so you know which type of point corresponds to