Hi,
that is perfect.
Thanks Sigbert
Am 06.03.23 um 13:08 schrieb Uwe Ligges:
What about
plot(c(0,1), c(0,1), type="n")
legend("top", legend=c("", "a", ""), col=c("blue", "red", "green"),
title="test", y.intersp=c(1,-0.4), lwd=1)
(in recent versions of R)
Best,
Uwe
--
https://hu.ber
What about
plot(c(0,1), c(0,1), type="n")
legend("top", legend=c("", "a", ""), col=c("blue", "red", "green"),
title="test", y.intersp=c(1,-0.4), lwd=1)
(in recent versions of R)
Best,
Uwe
On 06.03.2023 11:34, Sigbert Klinke wrote:
Hi,
I think you are right, legend cannot do it.
Hi,
I think you are right, legend cannot do it. I have now created my own
legend function where I changed only one line and now it works the way I
want it to. But I'm not sure if that might not have other side effects.
I have the impression that the legend and the title start at the same
y
Hi,
thanks, but this does not solve the problem. If I make y.intersp large
enough then it works properly. Maybe I was not clear enough: I want to
have the small distance between the lines and no overlap between the
title and the lines.
Sigbert
Am 04.03.23 um 17:59 schrieb Bert Gunter:
Set
Set the legend position explicitly with x and y values and add xpd = TRUE
to the legend call to clip the plot to the figure region and not the plot
region (the default). Something like this (you may have to fool around with
y.intersp, etc. to allow enough space between the legend lines):
plot(c(0,
This is the solution that best fits my needs.
Thanks everyone for their responses,
Naresh
Sent from my iPhone
On May 6, 2022, at 2:12 PM, David Carlson
mailto:dcarl...@tamu.edu>> wrote:
You can't get exactly what you want with base graphics, but you can get close
by defining line types and co
You can't get exactly what you want with base graphics, but you can get
close by defining line types and colors outside the plot command:
x <- seq(-3, 3, by = 0.01)
lns <- 1:2
clr <- 1:2
matplot(x, cbind(x, x^2), type="l", lty=lns, col=clr)
legend("bottomright", legend = c("x", expression(x^2)), l
Like this? theme(legend.position= 'top'
On Thursday, June 17, 2021, 10:52:04 AM PDT, peri He
wrote:
Dear Friends,
I would like to see my legend outside of a ggplot (at the top).
This code is showing the legend inside of a plot:
theme(legend.position=c(0.15,0.97))
But when I changed
John,
The order of legends in ggplot2 depends on the order of factor levels in the
data frame. The linetype can be matched to the factor levels using a named
vector (ggplot2 basically does a lookup).
The biggest problem you have here is that you’re not passing data in the right
form or format
eza.cz/01-dovetek/ | This email and any documents attached to
it may be confidential and are subject to the legally binding disclaimer:
https://www.precheza.cz/en/01-disclaimer/
From: John [mailto:miao...@gmail.com]
Sent: Wednesday, May 23, 2018 3:25 AM
To: PIKAL Petr
Cc: r-help
Subject: Re: [R] lege
Hi,
I ran your code, but the results were not as expected. After I ran the
code by "source", it return
No id variables; using all as measure variables
> p2
and no line or legend is on the graph (as attached)
Am I doing anything wrong?
John
library(ggplot2)
library(reshape2)
dfm<-mel
Hi
Your approach seems to me rather complicated. I would reshape data before
plotting and maybe also change order of levels in resulting variable factor
library(reshape2)
dfm<-melt(df)
dfm$variable<-factor(dfm$variable, levels=levels(dfm$variable)[c(2,1,3,4)])
p2<-ggplot(dfm, aes(x=rep(1:2,4), y
Not possible to debug your specific problem without sample data [1][2][3], but
learning how to setup and manage factors is a key skill for getting this right.
You will also make it less likely that the email you send gets damaged in
transit if you send plain text email instead of HTML.
[1]
htt
Thanks Thierry,
I knew there had to be a simpler way, but just could not find it
(facet_wrap() does the trick!).
Just 2 other questions:
- How do I remove the plot titles? I don't find any argument in
facet_wrap() on that...
- How can I add the legend for the outliers?
Thanks again,
Ivan
-
Dear Ivan,
You're making things too complicated.
ggplot(mydata, aes(x = Spot, y = Value)) +
geom_boxplot(aes(colour = Equipment), outlier.colour = "red") +
geom_jitter() +
facet_wrap(~Equipment, scales = "free_y") +
scale_colour_manual(values = c(Leeb = "blue", Shore = "red"))
Best regar
All,
Thanks anyway folks, but I'm going to call myself a bonehead and move on
now that I've found it. The key.arrow argument in vectorplot will do what
I need to make a scale legend. Thanks all!
Adrienne
On Tue, Mar 1, 2016 at 9:14 AM, Adrienne Wootten wrote:
> Jim,
>
> Thanks! Interesting
Jim,
Thanks! Interestingly when working with lengthKey it gives me an error
that plot.new hasn't been called after the plot has been created with
vectorplot. Really bizarre to me.
A
On Tue, Mar 1, 2016 at 5:22 AM, Jim Lemon wrote:
> Hi Adrienne,
> I'm not sure if this will help, but lengthKe
Hi Adrienne,
I'm not sure if this will help, but lengthKey in the plotrix package
will display a scale showing the relationship of vector length to
whatever numeric value is being displayed. However, you do have to
sort of the scaling manually.
Jim
On Tue, Mar 1, 2016 at 7:30 AM, Adrienne Wootte
Hi David,
1) set size to a fixed value instead of mapping it to a constant,
i.e., geom_line(size = 2) instead of geom_line(aes(size = 2))
2) perhaps
ggplot(rtest, aes(x=Time, y=Calculated,color=Model, group=Model)) +
geom_line(size = 2) +
geom_point(aes(y=Observed, shape=""),
si
'q' should be an expression object, not a list of expression objects.
Try defining 'q' as
q <- as.expression(lapply(lambdas, function(l)bquote(lambda==.(l
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Sat, Sep 13, 2014 at 5:55 PM, Julio Sergio Santana
wrote:
> I need to add a legend w
On Sep 13, 2014, at 5:55 PM, Julio Sergio Santana wrote:
I need to add a legend with three entries that should
contain a greek letter (lambda). I learnt that it is
possible using the function expression. So I need to
build the expressions from the lambdas vector, and I
simply cannot do it. This
The problem is that you are not actually 'mapping' any variables to
the fill and colour aestethics so ggplot wont produce legends for
those. I'm not sure ggplots are appropiate for what you're trying to
do here but you can sure hack around it a bit, for instance try:
ggplot(tabu, aes(x=weeks, y=T)
IOanna,
If you are trying to distinguish between the type="b" and the type="o" in
the legend, there does not appear to be a way to do this with the legend()
function in base. I found a similar question posted on stackoverflow, and
they suggested a work around for something similar (but not quite
> I want to plot the legend for the following two lines:
> ...
> Any ideas how?
Try ?legend
S Ellison
***
This email and any attachments are confidential. Any use...{{dropped:8}}
__
R
Thanks everyone for the help. Dennis, the bquote version work great.
Thanks,
Doug
On 2/7/2014 7:08 PM, Dennis Murphy wrote:
Here's a bquote version:
x=c(1,2,3,4); y=c(1,2,3,4); z=c(1.25,1.5,2.5,3.5)
# first stats based on data, used to populate legend
wdt_n = 50; wdt_mbias = 0.58
wdt_mae = 2
Here's a bquote version:
x=c(1,2,3,4); y=c(1,2,3,4); z=c(1.25,1.5,2.5,3.5)
# first stats based on data, used to populate legend
wdt_n = 50; wdt_mbias = 0.58
wdt_mae = 2.1; wdt_R2 = 0.85
# second stats based on data, used to populate legend
spas_n = 50; spas_mbias = 0.58
spas_mae = 2.1; spas_R2
On Feb 7, 2014, at 7:54 AM, Douglas M. Hultstrand wrote:
> Hello,
>
> I am trying to generate a plot legend that contains calculated summary
> statistics, one statistic is R^2. I have tried several variations using
> the commands "expression" and "bqoute" as stated on the R help pages. I
>
On 02/08/2014 02:54 AM, Douglas M. Hultstrand wrote:
Hello,
I am trying to generate a plot legend that contains calculated summary
statistics, one statistic is R^2. I have tried several variations using
the commands "expression" and "bqoute" as stated on the R help pages. I
have not been able
Thank you David, it is exactly what I needed.
Regards,Phil
> From: dcarl...@tamu.edu
> To: pmassico...@hotmail.com; r-help@r-project.org
> Subject: RE: [R] legend position
> Date: Mon, 2 Dec 2013 14:29:06 -0600
>
> It is not straightforward unless you want the legend in the
>
It is not straightforward unless you want the legend in the
right or the bottom margins. To put the legend inside the plot
region it is simplest to use image() to plot the raster file and
then image.plot(legend.only=TRUE) to add the legend. In addition
to reading the help page for plot{raster}, you
Thank you, I'll try to work with lattice.
Regards,Phil
> Date: Mon, 2 Dec 2013 12:06:50 -0800
> From: c...@witthoft.com
> To: r-help@r-project.org
> Subject: Re: [R] legend position
>
> It occurs to me that perhaps you're referring to the 'color bar' on the
It occurs to me that perhaps you're referring to the 'color bar' on the right
of the plot. AFAIK you cannot get at that from the raster::plot method.
However lattice::levelplot does allow you to manipulate or remove that
colorbar.
--
View this message in context:
http://r.789695.n4.nabble.
Thank you for reply.
If I'm not wrong, legend(...) will works for discrete elements. I'm not sure
hot to use it for a colorbar legend sur as the one in the example bellow.
Phil
> Date: Mon, 2 Dec 2013 11:49:19 -0800
> From: c...@witthoft.com
> To: r-help@r-project.org
> S
See ?legend . you can add a legend directly to an existing plot. An
example:
legend('topright',c('hot','cold'),lty=1,col=c('red','green'),bg='white')
Now if you're trying to place the legend outside the plot area (i.e. in some
other part of the window),
you'll need to invoke par(xpd=TRUE) . Se
Hi,
May be:
barplot(m$V3,names.arg=paste(m$V2,m$V1,sep="\n"),col=rainbow(10))
#or
barplot(m$V3,names.arg=m$V2,col=rainbow(20),legend=m$V1, args.legend = list(x =
"topright",box.lwd=0,border=FALSE))
A.K.
On Tuesday, November 26, 2013 1:18 PM, Adel ESSAFI wrote:
Hello;
I have the following tab
On 2013/9/23 12:52, David Winsemius wrote:
On Sep 22, 2013, at 10:54 PM, Jinsong Zhao wrote:
Hi there,
I plot a simple plot with the following code:
plot (rnorm(1:10), type = "b")
legend("top", "test", lty = 1, pch = 21)
?par
plot (rnorm(1:10), type = "b")
legend("top", "test", lty = "69",
On 2013/9/23 17:11, Jim Lemon wrote:
On 09/23/2013 01:54 PM, Jinsong Zhao wrote:
Hi there,
I plot a simple plot with the following code:
plot (rnorm(1:10), type = "b")
legend("top", "test", lty = 1, pch = 21)
The result is something wired for the line crosses the point in the
legend while the
On 09/23/2013 01:54 PM, Jinsong Zhao wrote:
Hi there,
I plot a simple plot with the following code:
plot (rnorm(1:10), type = "b")
legend("top", "test", lty = 1, pch = 21)
The result is something wired for the line crosses the point in the
legend while the line does not cross the point in the
On Sep 22, 2013, at 10:54 PM, Jinsong Zhao wrote:
Hi there,
I plot a simple plot with the following code:
plot (rnorm(1:10), type = "b")
legend("top", "test", lty = 1, pch = 21)
?par
plot (rnorm(1:10), type = "b")
legend("top", "test", lty = "69", pch = 21)
The result is something wired
Hi,
May be this helps.
set.seed(55)
x<-rnorm(1:10)
plot(x,type="n",xaxt="n",yaxt="n")
legend1<- legend("top","test",lty=1,pch=21)
range1<- range(x)
range1[2]<- 1.05* (range1[2]+ legend1$rect$h)
plot(x,ylim=range1,type="b")
legend1<- legend("top","test",lty=1,pch=21)
A.K.
- Original
Hi
put line
legend("topright", legend=names(a)[3:9], lty=1, col=3:9)
before dev.off()
see ?legend for fine tuning.
Regards
Petr
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Ma Teresa Martinez Soriano
> Sent: Tuesday, S
Hi Robert,
Your legend is for fill, not color, so you need
guides(fill = guide_legend(nrow = 3))
instead of
guides(colour = guide_legend(nrow = 3))
Best,
Ista
On Wed, Aug 28, 2013 at 5:09 PM, Robert Lynch wrote:
> I am having trouble getting my legend to format the way I want it to. I
> sus
I am having trouble getting my legend to format the way I want it to. I
suspect it is something simple.
>
> the code I have is
> library(ggplot2)
> ggplot(Chem.comp, aes(Course, GRADE.)) + geom_boxplot(notch =
> TRUE,aes(fill = COHORT))+
> labs(title = "Comparison between ISE cohorts and Peers
I thought my reply went to the group last night. i had already resolved it.
in short, before his first reply it was resolved... which is why i didn't offer
additional information. i was honestly taken aback by his response to me. i
don't respond well to vitriol wrapped in attempts to help. i
Nicole,
Since you seem more interested in accusing David of being rude than
recognizing your own rudeness and taking steps to overcome that and
increase your chance of getting useful responses I will quote a few lines
from the posting guide for you (the entire posting guide is available from
the l
by the time your rude reply came ( you are often rude to people so i shouldn't
have been surprised but somehow was) , i had already found my answer, by doing
it MYSELF on her computer and found had not followed some simple instructions.
be well.
~Nicole Ford
Ph.D. student
Graduate Assistant/ In
I did look at ??pie ??graphics, as per my reply. which netted nothing of
value.
thanks.
~Nicole Ford
Ph.D. student
Graduate Assistant/ Instructor
University of South Florida
Government and International Affairs
office: SOC 012M
e: nmhi...@mail.usf.edu
http://gia.usf.edu/student/nford/
On
My point is that you _still_ have not adhered to the Posting Guide request for
sessionInfo() ... I say again. Please read the Posting Guide ... AND PLEASE
STOP posting formatted email.
--
David.
On Feb 25, 2013, at 10:20 AM, Nicole Ford wrote:
> I did look at ??pie ??graphics, as per my repl
On Feb 25, 2013, at 7:37 AM, Nicole Ford wrote:
> hello, all.
>
> one of my students is having an issue with the pie & legend function.
>
> this is her code. (below)
>
> it works just fine for me.
>
> her error is "plot.new has not been called yet". i know this means her pie
> chart is com
Using pch you can use all the symbols in the current font, try:
plot(0:15, 0:15, type='n')
points( (0:255)%%16, (0:255)%/%16, pch=0:255 )
then do it again with
points( (0:255)%%16, (0:255)%/%16, pch=0:255, font=5 )
(font 5 is usually a symbol font, fonts 2, 3, and 4 are bold and italic
versions
Possible? Yes. (see fortune("Yoda"))
Automated using the legend function? No
Automated using another function? possbly somewhere in the 4,000+
packages on CRAN, but I don't know which.
It is doable with the basic tools. You could either find a part of
your graph with open area to put the legend i
This worked perfectly, thank you!
(Sorry for the delay, was traveling and didn't get a chance to test it until
now.)
Kirsten
On Oct 4, 2012, at 1:30 PM, David Winsemius wrote:
>
> On Oct 3, 2012, at 12:58 PM, Kirsten wrote:
>
>> Hey everyone,
>>
>> I'm working on a contour plot depicting a
On Oct 3, 2012, at 12:58 PM, Kirsten wrote:
> Hey everyone,
>
> I'm working on a contour plot depicting asymptomatic prevalence at varying
> durations of infectiousness and force of infection. I've been able to work
> everything out except for this one - my legend title keeps getting cut off.
Data attached - didn't realize I could do that last night. Here's the data
inport piece of my code, change the pathname to your computer.
asym<-read.csv('/Users/kirstensimmons/Desktop/Asym04.csv')
asym
#put the data into a data matrix
asym_matrix<-data.matrix(asym)
On Thu, Oct 4, 2012 at 6:35
On Oct 3, 2012, at 12:58 PM, Kirsten wrote:
> Hey everyone,
>
> I'm working on a contour plot depicting asymptomatic prevalence at varying
> durations of infectiousness and force of infection. I've been able to work
> everything out except for this one - my legend title keeps getting cut off.
A quick hack to give you space between the line and point (if you only
used solid lines) is to specify lty='ff' to the legend function.
If you want more control then look at setting trace=TRUE and
plot=FALSE and looking at the printed outcome and the return value
from legend. This does not plot t
On 2012-08-16 0:22, Greg Snow wrote:
You can use the grconvertY function to find the position in the
current user coordinates that corresponds to the top of the device
area (instead of using locator).
Thank you very much. grconvertX() and grconvertY() work very well.
Look at the "merge" argu
You can use the grconvertY function to find the position in the
current user coordinates that corresponds to the top of the device
area (instead of using locator).
Look at the "merge" argument to the legend function.
On Wed, Aug 15, 2012 at 10:04 AM, Jinsong Zhao wrote:
> Hi there,
>
> I draw a
On 09/06/12 13:20, peter dalgaard wrote:
>> I guess I overlook the corresponding part in the manual but how can I
>> modify the distance between the text and the line in a legend?
>>
>> Thank you for any hints!
>
> You mean like this?
>
> plot(0)
> legend(1, .5, legend=c("foo","bar"), lty=1:2, pc
On Jun 9, 2012, at 13:04 , Sebastian Schubert wrote:
> Hi,
>
> I guess I overlook the corresponding part in the manual but how can I
> modify the distance between the text and the line in a legend?
>
> Thank you for any hints!
You mean like this?
plot(0)
legend(1, .5, legend=c("foo","bar"), l
Hi Richard,
Thanks for the solution.
A.K.
From: Richard M. Heiberger
To: arun
Sent: Monday, June 4, 2012 1:47 AM
Subject: Re: [R] Legend colors not matching with Intxplot line colors
Thank you for catching that. I will repair it in the next version of
Thank you every body for your suggestion. It does help.
On Fri, Apr 6, 2012 at 2:37 AM, windmagics_lsl wrote:
> I think there may 3 legends should be added in your plot
> the argument col, pch and pt.cex should be in the same length with legend,
> but the objects col, pch
> and cex you defined
I think there may 3 legends should be added in your plot
the argument col, pch and pt.cex should be in the same length with legend,
but the objects col, pch
and cex you defined former have 16*3 length. I guess the follow codes may
work
col <- rep(c("blue", "red", "darkgreen"), c(16, 16, 16))
##
Thanks,
anyway, using build-in R features is preferable for colours
with(data, plot(axis1, axis2, col= c("red", "blue",
"green")[as.numeric(data$Region)]))
legend("topright", legend=levels(data$Region), fill= c("red", "blue",
"green"))
although sometimes can be preferable to get advantage of
He provided data, yet in an inconvenient way at the bottom of his post.
Kumar, please use dput() to provide data to the list, because its much
easier to import:
dput(data)## name data is made up by me
structure(list(Region = structure(c(2L, 2L, 2L, 2L, 2L, 3L, 3L,
3L, 3L, 3L, 1L, 1L, 1L, 1L,
Hi
>
> I have a bivariate plot of axis2 against axis1 (data below). I would
like
> to use different size, type and color for points in the plot for the
point
> coming from different region. For some reasons, I cannot get it done.
Below
> is my code.
>
> col <- rep(c("blue", "red", "darkgreen"
Thanks - Jason Connor, Rolf Turner and Pascal Oettli.
Either of the following can remove the border surrounding the words.
legend (locator(1), "Important ones", box.col=NA)
legend (locator(1), " Important ones ", bty="n")
regards,
Chintanu
[[alternative HTML version deleted]]
_
On 08/03/12 18:52, Chintanu wrote:
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(
On Feb 16, 2012, at 6:50 AM, David Zastrau wrote:
Hello everyone,
i’ve got a problem with my diagram’s legend. I know i should be able
to figure it out by reading the ‘plot’ and ‘legend’ reference.
However nothing works so it would be kind if anyone could point me
to the necessary parame
I figured it out:
you have to pass the mar-argument to the plot function and than you may
position the legend via inset.
Have a nice day!
From: David Zastrau
Sent: Thursday, February 16, 2012 12:50 PM
To: r-help@R-project.org
Subject: Legend vanishes when placed outside the graph
Hello ever
Thanks for the tip. I will try it out. I am more after a legend of colors than
readable labels. In fact I would prefer getting rid of the text labels
altogether.
On Jan 22, 2012, at 12:46 AM, Jim Lemon wrote:
> On 01/22/2012 06:56 AM, Kevin Burton wrote:
>> Of course by entering 'blah' you jus
On 01/22/2012 06:56 AM, Kevin Burton wrote:
Of course by entering 'blah' you just get a legend of one value. I guess I
would like to remove the text altogether and put the colored boxes (or circles)
right next to each other. This would form sort of a gradient. So say I needed a
legend for 100
Of course by entering 'blah' you just get a legend of one value. I guess I
would like to remove the text altogether and put the colored boxes (or circles)
right next to each other. This would form sort of a gradient. So say I needed a
legend for 100 colored values on the plot. The colors are gen
Just any plot but put say 100 items in the legend. If you include text with
each item it clearly will not fit on any plot. So one workable example would be
to add a legend with a 100 or more items to your plot of choice.
Thanks for the suggestion.
On Jan 21, 2012, at 10:14 AM, John Kane wrote:
On 21.01.2012 14:47, Kevin Burton wrote:
I can put a legend on a plot with something like:
legend('bottom', leg.txt, horiz = TRUE, fill = colors)
But what if the arrays leg.txt and colors are too big? I would still like to
provide a legend but to save space I would like to just show small
Try something like this:
legend('bottom', leg.txt, horiz = TRUE, cex=.75)
A workable example is requested and would have been helpful.
- Original Message -
From: Kevin Burton
To: r-help@r-project.org
Cc:
Sent: Saturday, January 21, 2012 8:47:36 AM
Subject: [R] Legend that is big?
I c
Hi
> Hi all,
>
> Small problem in generating the line charts.
>
> Question: Legend for the first graph is coming wrong., for second graph
> correctly. Please fix the legend postion at the down of graph.
> Plesae give me the solution.
>
> Thank you
> Devarayalu
>
>
>
> Orange1 <- structu
On 2011-12-01 08:54, emorway wrote:
Hello,
A bit of fairly simple code, yet I don't seem to be able to manipulate it
quite as much as I would like:
1) It would be nice if the objects appearing in the legend were aligned,
and by aligned I mean the boxes are centered over the lines. Do I need t
On Thu, Dec 1, 2011 at 11:54 AM, emorway wrote:
> Hello,
>
> A bit of fairly simple code, yet I don't seem to be able to manipulate it
> quite as much as I would like:
>
> 1) It would be nice if the objects appearing in the legend were aligned,
> and by aligned I mean the boxes are centered over
Thank you sire for your help. Thank also for sharing the reference, I'll take
a look at it.
Regards,
Phil
--
View this message in context:
http://r.789695.n4.nabble.com/Legend-tp4103799p4108587.html
Sent from the R help mailing list archive at Nabble.com.
___
On 24.11.2011 16:49, Filoche wrote:
Thank you for your precious help. It works fine.
However, what about if I have two entries in the legend?
I tryed:
legend('topright', inset = .05, title = 'light ratios', pch = c(21,22),
legend = c(substitute('Green/Red' ~~ R^2 == r2,
list(r2=r2)),su
Thank you for your precious help. It works fine.
However, what about if I have two entries in the legend?
I tryed:
legend('topright', inset = .05, title = 'light ratios', pch = c(21,22),
legend = c(substitute('Green/Red' ~~ R^2 == r2,
list(r2=r2)),substitute('Green/Red' ~~ R^2 == r2, list(
On 24.11.2011 14:18, Filoche wrote:
Hi everyone.
I have a linear regression where I retrieve the R2 like this:
r2 = sprintf('%4.2f %s',(summary(reg1)$r.squared))
In my figure I have a legend where I would like to add that R2 value to the
legend text.
Something like: My text R^2 = r2
legen
Am 21.11.2011 10:06, schrieb Jim Lemon:
>
> Hi Knut,
> Have a look at the legendg function (plotrix).
>
Hi Jim
Thanks for the package it is very useful .. but I did not solve my problem.
As I have not much time I tried some basic configuration but the
characters are einther above the colored sqar
On 11/21/2011 07:55 PM, Knut Krueger wrote:
Hi to all
is it possible to build a legend with
plot(NA, type = "l",col="blue",lwd=2,ylim=c(-0.05,10),xlim=c(0,13),xaxt
= "n",xlab="",ylab="") # Grafikmodus mit erster Linie starten
Lcolors=c("blue","orchid","green")
lsymbols= c(16,17,15)
Ltext= c("te
On Fri, Oct 14, 2011 at 10:02 AM, David Winsemius
wrote:
> Legends are built in columns. You need to find a graphics symbol to put in
> the "points" column or you need to find something that the lines paramater
> will turn into a dot (and I'm not sure what that might be.)
A 'lines' component can
Legends are built in columns. You need to find a graphics symbol to
put in the "points" column or you need to find something that the
lines paramater will turn into a dot (and I'm not sure what that might
be.) My suggestion would be to change the line type to dashed and use
" - - -" for the
It is about the legend.
As you see in the example the line is not above the points symbol.
I want the line in the symbol in the same column.
Thank you for you interest in helping me.
Have nice day!
El jue, 13-10-2011 a las 22:40 -0400, R. Michael Weylandt escribió:
> Looking at your provided e
Looking at your provided example (thank you!), I'm not entirely sure
what you want to put in the same column. Could you perhaps clarify --
is it something about the plot itself or the legend?
Michael
>
> On Thu, Oct 13, 2011 at 8:00 AM, Kenneth Roy Cabrera Torres
> wrote:
>> Dear R users:
>>
>> I
On 9/15/11 4:40 PM, Duke wrote:
Hi folks,
Please let me know what I am doing wrong. I want to have a legend with
symbols that are filled with same color as the drawn line, but I
failed to do that:
plot(1:100, 1:100, pch=21, bg="red")
legend("bottomright", "test", bty='n', pch=21, bg="red", c
Hi:
The bars *are* ordered in the same way, but when you use coord_flip(),
the left category goes on top and the right category goes on the
bottom. Is this what you want?
ggplot(df, aes(x = name, y = value, fill = type)) +
geom_bar(position = position_dodge()) +
coord_flip() +
scale_fill_ma
On Aug 11, 2011, at 3:38 AM, Peter Maclean wrote:
How do I move the legend from default position (right and within the
plot) to the "bottomleft" of the plot?
interaction.plot(YEAR, ID GROWTH, legend=TRUE, col = 2:7,xlab="Year",
ylim=c(0,2), ylab="Growth",leg.bty = "o")
You display t
How do I move the legend from default position (right and within the plot) to
the "bottomleft" of the plot?
interaction.plot(YEAR, ID GROWTH, legend=TRUE, col = 2:7,xlab="Year",
ylim=c(0,2), ylab="Growth",leg.bty = "o")
Peter Maclean
Department of Economics
UDSM
___
On 08/01/2011 04:52 AM, Cheryl Johnson wrote:
Hello,
I have two plots on the same screen. I use the command par(mfrow=c(1,2)) in
order to do this. When I try to make a legend for both plots, it only puts
the legend in the plot on the right side. If I would like a legend that is
outside of both o
You could make three plots. The first two you plot in and the third
one you place the legend in.
nf<-layout(matrix(c(1,2,3), 1, 3, byrow = TRUE), c(6,6,3), c(6))
layout.show(nf)
plot(sin, -pi, 2*pi, col = "blue2")
plot(sin, -pi, 2*pi, col = "darkorange3")
plot(1, xlim=c(1,2), ylim=c(1,2), type=
Júlio,
Your code is not reproducible, you doesn't provide any data. So I did a
minimal code that illustrates a possible procedure is the following
n <- 30
da <- data.frame(x=runif(n), y=runif(n), z=runif(n))
da$z <- cut(da$z, seq(0,1,0.25))
require(lattice)
xyplot(y~x, da, cex=as.numeric(da$z),
On 20.03.2011 18:52, Hongwei Dong wrote:
Hi, R users,
I there a way that I can control the position of the legend while using
"barplot" function?
For example:
a<-matrix(c(0,0,0.5,0.8,0.9,0.9),2,3)
colnames(a)<-c("X","Y","Z")
rownames(a)<-c("A","B")
a
barplot(a,width = 0.2,legend =
TRUE,axes=FA
Hello,
Am 28.02.2011 um 12:57 schrieb Sarah Goslee:
> Stefan,
>
> I'm not entirely certain what you're doing. Providing a working example would
> make it much easier for us to offer suggestions. The graphics system you're
> using matters, for instance.
>
> Sarah
Thank you for your replay, Sara
Stefan,
I'm not entirely certain what you're doing. Providing a working example would
make it much easier for us to offer suggestions. The graphics system you're
using matters, for instance.
Sarah
On Mon, Feb 28, 2011 at 6:32 AM, Stefan Richter wrote:
> Hello,
>
> i have a plot with a horizonta
you can use layout to setup 4 plot areas; 3 for the graphs and then along one
on the right for the legend
Sent from my iPad
On Feb 6, 2011, at 2:41, Matt Cooper wrote:
> Hi All,
>
> BG: Will try be brief. I'd like 3 graphs on a page (below each other
> mfrow=c(3,1)), saved to pdf. The three p
1 - 100 of 212 matches
Mail list logo