Displaying 20 results from an estimated 9000 matches similar to: "legend question"
2005 Jul 21
2
opening RDB files
Hi all,
I've recently upgraded to R version 2.1.1 and when trying to inspect the
contents of many packages in the library (for instance library\MASS\R) I've
realized wordpad, or the notepad, won't open them since they have *.RDB and
*.RDX extensions which these editors cannot recognize.
However, libraries in previous versions of R did not have these extensions
and I could inspect
2008 Jul 10
1
quantile regression estimation results
Dear list,
I'm using the quantreg package for quantile regression. Although it's
fine, there're is some weird behavior a little bit difficult to
understant. In some occasions, the regression results table shows
coefficients, t-statistics, standard errors and p-values. However, in
other occasions it shows only coefficients and confidence intervals.
Therefore, the question is... Is
2010 Aug 15
2
legend outside plot area
Hi, please can you help me. When I add a legend to a boxplot it appears inside the plot area, how do you get it into the margins? I have already changed the parameters so there is space for it on the margin on the right hand side of the graph.
Thanks, Emily
[[alternative HTML version deleted]]
2005 Oct 21
3
make three plot to one plot
Dear all,
I want to make three plot below to only one plot together with legend,
how can I do that?
I have tried with matplot function but I did not succeed.
Thanks for your help.
Sincerelly,
Jan Sabee
test.five.x <- c(0.02,0.05,0.07,0.09,0.10,0.12,0.13,0.14,0.16,0.17,0.20,0.21,0.34,0.40)
test.five.y <- c(18,12,17,12,3,15,1,5,1,1,3,10,15,10)
plot(test.five.x, test.five.y,
2005 Apr 02
1
Survey of "moving window" statistical functions - still looking f or fast mad function
Hi,
First, let me thank Jaroslaw for making this survey. I find it quite
illuminating.
Now the questions:
* the #1 solution below (based on cumsum) is numerically unstable.
Specifically if you do the runmean on a positive vector you can easily
get negative numbers due to rounding errors. Does anyone see a
modification which is free of this deficiency?
* is it possible to optimize the
2003 Jun 05
2
Fwd: Re: legend() with option adj=1
Is there a simpler way then the solution to the one that was posted here? I'm
not very proficient with legend, and I don't understand this solution. All
I have is two or more lines on one plot that I want to put a legend on and I
can't figure out how to do it from the examples. Can you give a very simple
example? It does not have to be fancy!! I have never worked with a
2003 May 20
1
legend() with option adj=1
Hi there,
I want to justify to right the text of my legend. Consider this short
reproducable example.
x <- 1:5
y1 <- 1/x
y2 <- 2/x
plot(rep(x,2),c(y1,y2),type="n",xlab="x",ylab="y")
lines(x,y1)
lines(x,y2,lty=2)
legend(5,2,c("1,000","1,000,000"),lty=1:2,xjust=1,yjust=1)
2003 Dec 12
1
legend() graphics output bug (PR#5725)
Full_Name: Daniel Gasser
Version: 1.8.1
OS: Win XP
Submission from: (NULL) (130.60.20.92)
The legend()-Function shows a different behaviour than it did in Version 1.6.1.
It plots a black box left of the legend lines on each legend row. In 1.6.1 there
was just the line in appropriate color for each row in the legend (i was using
exactly the same legend statement and same plot function).
My legend
2000 Jun 09
2
w0 in legend
In Version 1.1.0 Under development (unstable) (June 8, 2000)
there seems to be a problem with an internal variable w0 in legend that
generates the following new error:
Error in legend((par()$usr)[1:2], (par()$usr)[3:4], Legend, lty = lty, :
Object "w0" not found
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read
2010 Jan 12
1
Multiple symbols per single line in a legend
Hello everybody,
Is it possible to coax legend() into displaying more than one simbol per
line in legend? I have a graph like the one attached to this mail; I would
like to reorganize the legend in such a way that the duplicate text would be
omitted, i.e., the first line would read <square> <triangledown> "increasing
frequency" and the second one would read <circle>
2004 Dec 02
3
Wishlist: simple legend options (PR#7400)
Full_Name: Elizabeth Purdom
Version: 1.9.1
OS: Windows XP
Submission from: (NULL) (171.64.102.199)
It would be nice if legend had the option of some default locations you could
choose instead of entering specific coordinates, like "topleft",
"topright","topcenter", etc. based on par("usr") coordinates. I know I've wanted
it so often I've made my
2008 Apr 10
6
How to create a legend without plot, and to use scientific notation for axes label ?
Hi,
I have a 3 by 2 plots per page, and would like to place a legend on the last
region. How to do that ?
Also, is there any way to specify scientific notation for axes label ?
[[alternative HTML version deleted]]
1997 May 11
2
R-alpha: Logarithmic scales
Here are another three problems with logarithmic scales:
1) segments() does not work with logarithmic scales. I suggest to change
lines 962-973 in "plot.c":
for (i = 0; i < n; i++) {
if (FINITE(xt(x0[i%nx0])) && FINITE(yt(y0[i%ny0]))
&& FINITE(xt(x1[i%nx1])) && FINITE(yt(y1[i%ny1]))) {
GP->col = INTEGER(col)[i % ncol];
2002 Nov 12
1
problem with `legend' + `substitute'
Hello, R experts!
I'd like to add the somewhat complicated expression as "legend"
to the plot:
x <- 1
T <- 10
plot(x)
legend ( 1.0 ,1.0
,substitute ( paste ( Sr["2"] ,GaMnO["5.541"]
,", T = " ,T ,"K"
)
,list (T = T)
2009 Jun 26
3
Automatically placing a legend in an area with the most white space...
At one point I believe I heard of an R package that would automatically find the most empty space in a plot, and then that answer could then be used to intelligently place a legend.
I would like to try to apply that R package to the contrived example shown below, so thank you for any hints or tips that can be provided.
x = seq(0, 1000, by = 1)
y1_vals<-rnorm(1000, mean = 0, sd = 50)
2001 Aug 27
1
colorbar legend for image()
Hi,
are there any plans to add a colorbar legend to image()?
Or such a possibility already implemented which I just haven't
discovered yet. Anyway, I will be willing to spent some time on the
implementation if there isn't anyone working on that already.
Thanks
Thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read
2012 Oct 10
2
r-plot help-it prints outside frame
Hello,
i have been doing browns exponential smooting for myself and have a little
trouble with plotting values:
par(xpd=TRUE)
plot(vector,xlab="Period",ylab="Values")
legend(max(vector), legend = c("Original values", "Estimated values"),
col=c("blue","red"),lwd=0.5, cex=1, xjust=0.1, yjust=-0.3)
lines (vector, type =
2010 Feb 07
4
x-axis plot problem
Hi all,
I tried to have plot of many vector in one plot and i have got a nice plot
but i have problem with x-axis. I want to have month and year only(Jul.07
means July 2007) in x-axis without appearing other number behaind it.
I would appercit any help.
The R code:
F<-c(7.49,6.91,6.78,6.99,7.44,7.42)
M<-c(4.81,4.51,5.21,4.65,4.75,3.86)
P<-c(7.49,15.03,15.19,15.32,15.42,15.45)
2010 Jul 22
5
legend in R plot
Hi all,
I am have some difficulty with the legend function.
I need to add a legend to describe the different line types in a plot. The
legend box is small.
It did not include sufficient length of each line type to help distinguish
the differnt line types.
Is there a way to fix this.
Thank you
Hannah
[[alternative HTML version deleted]]
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))