search for: legendg

Displaying 6 results from an estimated 6 matches for "legendg".

Did you mean: legend
2010 Jul 18
5
package "plotrix"
...uot;legend" problem. The package instaleed correctly on my Mac OS/X 10.5.8 But I cannot reproduce the examples centered on function "lgendg". > library(plotrix) > plot(0.5,0.5,xlim=c(0,1),ylim=c(0,1),type="n", + main="Test of grouped legend function") > legendg(0.5,0.8,c("one","two","three"),pch=list(1,2:3,4:6), + col=list(2,3:4,5:7)) Error: could not find function "legendg" My problem with the regular R "legend" function is that I cannot indicate in the legend the line plotted by the command "abli...
2023 Feb 15
0
Question about italics in legendg() - plotrix
...o be modular, that is, it builds plots step by step. This makes it easier to understand code that you haven't written or haven't seen for a while. Here is an example showing how to change the font using par(): library(plotrix) plot(0,type="n",xlim=c(0,1),ylim=c(-1,0)) par(font=3) legendg(0.115,-0.055,legend=c("Pan troglodytes","Macaca mulatta", "Saguinus oedipus","Lemur catta","Galago senegalensis"), pch=list(c(15,0),c(16,1),c(17,2),c(18,5),c(19,10)), col=list(c("royalblue","skyblue1"), c("chocolate"...
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>
2010 Apr 26
5
How to make legend with line+ character
Dear all, I have a multiline plot with each line labeled with a different letter. But I'm not able to make the legend display the same kind of pattern '-a-', instead the letter is overwritten by the line. A simpler legend with only the letter is not very visible and the pt.bg does nothing with letters. Any idea? plot(1:10,10:1,lty=1,type='b', lwd=2,pch='a')
2010 Sep 01
3
how to represent error bar in a plot legend?
I have a simple barplot of 4 mean values, each mean value has an associated 95% confidence interval drawn on the plot as an error bar. I want to make a legend on the plot that uses the error bar symbol, and explains "95% C.I." How do I show the error bar symbol in the legend? I could not find any "pch" values that are appropriate Thanks [[alternative HTML version
2011 Dec 01
2
legend, "lheight", and alignment
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 to adjust the use of "NA" in the code below to accomplish this? Here's how it appears on my machine: