[R] pch size in a legend

Chel Hee Lee chl948 at mail.usask.ca
Sat Jan 31 18:05:58 CET 2015


Hi Ahmed,

It also works with the following working environment:

 > R.version
                _
platform       x86_64-w64-mingw32
arch           x86_64
os             mingw32
system         x86_64, mingw32
status
major          3
minor          1.2
year           2014
month          10
day            31
svn rev        66913
language       R
version.string R version 3.1.2 (2014-10-31)
nickname       Pumpkin Helmet

 > unlist(.Platform)
      OS.type     file.sep   dynlib.ext          GUI       endian 
pkgType
    "windows"          "/"       ".dll"       "Rgui"     "little" 
"win.binary"
     path.sep       r_arch
          ";"        "x64"
 >

Chel Hee Lee

On 1/30/2015 9:55 PM, Jim Lemon wrote:
> Hi Ahmed,
> Hmmm, this seems to work for me (R-3.1.2, Linux)
>
> legend(0,2100, legend=c("2009","2010","2012","2013","2014"),
>   col = 1,cex=1,lty=NA,pch=c(1,2,6,7,8),lwd=2,bty="n",pt.cex=2)
>
> Jim
>
>
>
> On Sat, Jan 31, 2015 at 8:49 AM, Ahmed Attia <ahmedatia80 at gmail.com> wrote:
>> Hi R users,
>>
>> I would like to adjust the pch size in a legend without changing the
>> text size, pt.cex does not do the job. R 2.15.2 32 bit.
>>
>> legend(0,2100, legend=c("2009","2010","2012","2013","2014"),
>> col = 1,cex=1,lty=NA,pch=c(1,2,6,7,8),lwd=2,bty="n")
>>
>> Thanks
>>
>>
>> Ahmed Attia, Ph.D.
>> Agronomist & Soil Scientist
>>
>> Post-Doc Research Associate
>> Texas A&M AgriLife Research-Vernon
>> ahmed.attia at ag.tamu.edu
>> Cell phone: 001-979-248-5215
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list