[R] Border width on symbols plotted with the lattice package
dwinsemius at comcast.net
Fri Feb 8 18:14:19 CET 2013
On Feb 8, 2013, at 8:55 AM, ilai wrote:
> Like this ?
> xyplot(4:5~4:5, groups=4:5, lex = 5 ,
> par.settings = simpleTheme(cex=10, pch=21, lwd=5),
And if I had used a more general search strategy I might have found it, too, rather than hacking my way to a less adequate solution; less adequate in the sense of no supporting a proper coloring of points.
On the other hand this solution has possibly undesireable effects on the key symbols.
> On Fri, Feb 8, 2013 at 6:46 AM, Karl Ove Hufthammer <karl at huftis.org> wrote:
>> Dear list members,
>> I can't figure out how get 'xyplot' or 'dotplot' in the 'lattice' package
>> to respect the 'lwd' value for specifying the border with for *symbols*
>> (for lines it works fine). Example:
>> # Base graphics works fine (gives a 'fat‚ circle)
>> plot(5, cex=10, pch=21, lwd=10)
>> # But 'xyplot' or 'dotplot' doesn't
>> xyplot(4:5~4:5, groups=4:5, par.settings = simpleTheme(cex=10, pch=21,
>> For 'xyplot' or 'dotplot' the border stays thin no matter what I set 'lwd'
>> to. However, the symbols shown in the *legend* has the 'lwd' correctly
>> How can I fix this? Or is it simply a bug in the 'lattice' package?
>> Karl Ove Hufthammer
>> Output of 'sessionInfo()':
>> R version 2.15.2 (2012-10-26)
>> Platform: x86_64-w64-mingw32/x64 (64-bit)
>>  LC_COLLATE=Norwegian-Nynorsk_**Norway.1252
>>  LC_CTYPE=Norwegian-Nynorsk_**Norway.1252
>>  LC_MONETARY=Norwegian-Nynorsk_**Norway.1252
>>  LC_NUMERIC=C
>>  LC_TIME=Norwegian-Nynorsk_**Norway.1252
>> attached base packages:
>>  stats graphics grDevices utils datasets methods base
>> other attached packages:
>>  lattice_0.20-13
>> loaded via a namespace (and not attached):
>>  grid_2.15.2 tools_2.15.2
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/**
>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Alameda, CA, USA
More information about the R-help