Displaying 20 results from an estimated 900 matches similar to: "arni.colors"
2005 Jul 07
2
Brewer colours
Anyone who is interested in using optimal colour palettes should
look at the work of Cindy Brewer: www.colorbrewer.org
I have written code to use her colour schemes in R. It is
included below. Perhaps someone may find this interesting enough
to work into a package.
Included also is a function showpalette, which was posted here a
while back. I don't remember who wrote it.
I have copied all
2020 Apr 20
1
stringsAsFactors and type.convert()
Dear Martin,
Thank you for the well-reasoned response. I realized I was rather late to make this suggestion for 4.0.0, changing a somewhat low-level function that can indeed affect packages.
I was just reviewing some R user scripts that were using type.convert(), mainly on data frames. In all cases, people were passing as.is=TRUE, so I was reminded that I would not be the only user who would
2000 Mar 29
1
pre summary: mapping of colornames into hsv?
Hi Martin,
Great that you follow this. My original intention was to be able to
translate colornames to hsv because this would allow using colornames to cut
out a certain part of the colorwheel for colorcoding (HSV component H, see
my code below)
I think internally we might have colors represented as
Colornames, ColorIntegers, ColorHexcodes, ColorRGBs, ColorHSVs (ColorCMYs?)
however the R-user
2010 Sep 08
2
Drop single-dimensional array
Hi Simon, thank you for the concise reply.
Do you mean the reported behavior of drop() is not a bug?
It looks like a borderline bug to me (see below), but I'm not the judge of
that. If this is the intended behavior and serves an actual purpose, then
that could be explicitly documented in a \note{} on the help page.
Such a note would slightly reduce the surprise of users running into this
2020 Apr 13
2
stringsAsFactors and type.convert()
If read.table() is defaulting to "character" instead of "factor" data type, shouldn't type.convert() also default to "character" in R 4.0.0?
This would seem like a good time to change the default to type.convert(as.is=TRUE), to align it with the new default in read.table and data.frame. I think many R >=4.0.0 users would be happy with as.is=TRUE as the default
2011 Jul 20
0
Is it possible to save raster data as a bitmap?
Hi all,
I intend to use R for some image manipulations/analysis. It's relatively straightforward to read and manipulate image files in R, but I also would like to store the resulting image (after manipulation) as a bitmap image with the same resolution as the original image. Here is a simplified version of what I'm working on:
# Start example
require("RImageJ")
# first open
1999 Nov 26
4
Programming ....
Hi,
I am building my own TCP daemon for easing some routine admin stuff... I am
no expert on security,. I would really appreciate it if someone sent me some
pointers to writing TCP daemons that are hacker-proof( i know there is
nothing like that...but I do not want to be making mistakes in coding that
are well known.. ;)
The daemon runs as root....so that is why I am woried....
Thx,
Arni
2008 Mar 31
2
hsv2rgb in R
I noted that there is a hsv2rgb in the C-API, but no corresponding function in
R, while rgb2hsv is available in R.
Does the functionality of hsv2rgb hide under some other name?
Dieter
2011 May 26
1
Statistical mode
One descriptive statistic that is conspicuously missing from core R is the
statistical mode - the most frequent value in a discrete distribution.
I would like to propose adding the attached 'statmode' (or a similar
function) to the 'stats' package.
Currently, it can be quite cumbersome to calculate the mode of a
distribution in R, both for experts and beginners. The lack of a
2003 Sep 18
1
Reverse axis in xyplot()
Creating a plot with reverse Y axis is easy enough with traditional
graphics:
> x <- 1:3
> y <- 1:3
> plot(y~x, ylim=c(3,1))
+-----------+
1 | o |
| |
2 | o |
| |
3 | o |
+-----------+
1 2 3
But xyplot doesn't grasp my idea:
> xyplot(y~x, ylim=c(3,1))
+-----------+
3 | o |
| |
2 | o |
2003 Feb 21
1
POSIX problem in New Zealand (PR#2570)
Full_Name: Arni Magnusson
Version: 1.6.2
OS: Windows XP
Submission from: (NULL) (210.48.49.68)
Hi there. I'm experiencing unexpected behaviour from as.POSIXct:
> as.POSIXct("1969-12-24")
[1] "1969-12-23 23:00:00 New Zealand Standard Time"
> as.POSIXlt("1969-12-24")
[1] "1969-12-24"
> as.POSIXlt("1969-12-24")+1
[1] "1969-12-23
2004 Oct 17
1
FW: Plotcorr: colour the ellipses to emphasize the differences
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca]
Sent: ned 2004-10-17 15:34
To: Gorjanc Gregor
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Plotcorr: colour the ellipses to emphasize the differences
On Sun, 17 Oct 2004 02:51:58 +0200, "Gorjanc Gregor"
<Gregor.Gorjanc at bfro.uni-lj.si> wrote:
[removed old stuff]
>>I would also like to
2014 Apr 15
1
ASCIIfy() - a proposal for package:tools
Hi all,
I would like to propose the attached function ASCIIfy() to be added to the
'tools' package.
Non-ASCII characters in character vectors can be problematic for R
packages, but sometimes they cannot be avoided. To make packages portable
and build without 'R CMD check' warnings, my solution has been to convert
problematic characters in functions and datasets to escaped
2010 Feb 11
1
Rounding multinomial proportions
I present you with a function that solves a problem that has bugged me for
many years. I think the problem may be general enough to at least consider
adding this function, or a revamped version of it, to the 'stats' package,
with the other multinomial functions reside.
I'm using R to export data to text files, which are input data for an
external model written in C++. Parts of the
2023 Feb 23
1
Palettes {grDevices} - wrong number of colors returned?
On 23/02/2023 4:36 a.m., Sigbert Klinke wrote:
> Hi,
>
> I would have expected that I get always 3 colors as result which is not
> true:
>
> hcl.colors(3, alpha=c(0, 0.5, 1)) # 3 colors
>
> rainbow(3, alpha=c(0, 0.5, 1)) # 3 colors
>
> heat.colors(3, alpha=c(0, 0.5, 1)) # 3 colors
>
> terrain.colors(3, alpha=c(0, 0.5, 1)) # 6 colors
>
>
2023 Feb 23
1
Palettes {grDevices} - wrong number of colors returned?
Duncan,
thanks for your feedback. I just received your response after sending out
mine. You came to the same conclusion. Should I prepare a patch and send
it to you so that you can also have a look? Or view Bugzilla?
Best wishes,
Achim
On Thu, 23 Feb 2023, Duncan Murdoch wrote:
> On 23/02/2023 4:36 a.m., Sigbert Klinke wrote:
>> Hi,
>>
>> I would have expected that I
2003 Jul 02
1
Minor error in area() documentation (PR#3378)
Dear r-bugs,
The 'see also' link in help(area,html=T) is broken, see line 91 in
library/MASS/html/area.html:
"../../integrate/html/integrate.html"
should be
"../../base/html/integrate.html"
Regards,
Arni
OS: Windows XP
R: 1.7.1
MASS: 7.1-8
2004 Apr 28
1
boxplot graphical arguments (PR#6832)
Dear r-bugs,
I'd like to be able to draw boxplots with solid or dotted whisker lines.
The lty argument is currently ignored by boxplot(), and indeed hardwired
in bxp().
It's not very difficult to customize these functions to generate various
types of boxplots, but generally it might be an idea to allow the user to
pass a few more graphical arguments to boxplot(). The approach might as
2005 Mar 22
1
pch=NA (PR#7737)
I'd like to suggest changes to three help pages, regarding the use of
pch=NA to suppress plotting symbols. See below.
Arni
R 2.0.1 on WinXP
===
help(bxp)
===
The argument outpch=" " needs to be replaced with outpch=NA in two places.
I actually wrote this part of the documentation myself at one point, but
have now realized that pch=NA and pch=" " are not the same:
2005 Jul 07
1
write.csv (PR#7992)
The write.csv() function is currently implemented as
function (..., col.names=NA, sep=",", qmethod="double")
{
write.table(..., col.names=NA, sep=",", qmethod="double")
}
Surely, it should be
function (..., col.names=NA, sep=",", qmethod="double")
{
write.table(..., col.names=col.names, sep=sep,