Displaying 20 results from an estimated 50000 matches similar to: "multiple functions with three dots"
2010 Feb 19
1
lty dots pdf issue
I'm trying to redo an old plot with:
> sessionInfo()
R version 2.11.0 Under development (unstable) (2010-02-09 r51113)
x86_64-apple-darwin9.8.0
When I do:
pdf("lty.pdf",height = 6, width = 8)
u <- 1:100/100
y <- matrix(rep(1:10,each = 100),100)
matplot(u,y,lwd = 2,type ="l")
dev.off()
the line types that have dots are difficult to distinguish because the
2009 Feb 16
2
Printing out a graph using different graphics devices
Hello, everyone!
The code below allows me to produce the graph I want (I know - the
colors are strange, but it's just for the sake of an example).
After you run the plot<- part and then do print(plot) - that's what I want.
However, when I run the bits of code below (with graphics devices) -
what they print is different from the original plot. In .png, .emf,
and .tiff - my dots change
2009 Sep 20
3
problems with Stackpoly, package Plotrix
Dear all,
I am fairly new to package Plotrix and I would like to ask you, if any of
you could help me with following.
a) I don't know how to set up border line width in the Stackpoly function
(seems that lwd from par doesn't work, or at least not in the way I have
written)
b) I don't know, how to rotate the x axis labels (I used srt=45, but same
problem as before).
c) Could anyone
2009 Nov 08
2
linear trend line and a quadratic trend line.
Dear list users
How is it possible to visualise both a linear trend line and a quadratic trend line on a plot
of two variables?
Here my almost working exsample.
data(Duncan)
attach(Duncan)
plot(prestige ~ income)
abline(lm(prestige ~ income), col=2, lwd=2)
Now I would like to add yet another trend line, but this time a quadratic one. So I have two
trend lines. One linear trend line
2011 Jul 17
1
function design: multiple imput names
dear all,
a simple question, I need to write a function in which I retrive an
undetermined number of vector in the function.
I solved the problem thanks to this link
http://stackoverflow.com/questions/2540232/how-to-allow-multiple-inputs-from-user-using-r
so my function will look alike this
my_fun <- function(...){
my_list <- lapply(..., function(x){x})
}
I need just one more
2017 Dec 16
2
Strange dots on monitor
I forgot to write that the dots start to appear only inside "Desktop
Environment" (in my case Gnome), not for example in grub/bios. Today I
tried to install ubuntu 16.04 and the green dots appeared there too (in
Unity).
On Sun, Dec 17, 2017 at 12:50 AM, vychytraly . <vychytraly at gmail.com> wrote:
> Hello friends,
>
> about 2 days ago, unexpected strange green dots
2014 Nov 27
2
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Dear List,
I'm currently investigating if the argument dispatch mechanism based on
`...` could somehow be "generalized" to scenarios that involve `r`
recipients located across `c` calling stack layers *and* combined with the
S4 method mechanism (for those interested see
2002 Jan 18
3
Should dots be used in generic functions?
When writing generic functions, should "..." arguments be routinely
used?
The Writing R Extensions manual says that if it is used, all
descendant methods must use it too. In most cases in the R library
source, the generic has the dots, often documented as parameters for
the descendants (e.g. profile does this). In the case of profile, the
descendants declare the dots, but don't
2009 Mar 25
2
Dotfiles with multiple dots not marked as hidden
I have "hide dot files" on, but I have noticed that while files with a
single dot are hidden, files with multiple dots are not:
".foo" - hidden
"...foo" - not hidden
Is this by design? *nix certainly hide such files by default...
-- Barry
--
http://barrkel.blogspot.com/
2005 Oct 21
3
make three plot to one plot
Dear all,
I want to make three plot below to only one plot together with legend,
how can I do that?
I have tried with matplot function but I did not succeed.
Thanks for your help.
Sincerelly,
Jan Sabee
test.five.x <- c(0.02,0.05,0.07,0.09,0.10,0.12,0.13,0.14,0.16,0.17,0.20,0.21,0.34,0.40)
test.five.y <- c(18,12,17,12,3,15,1,5,1,1,3,10,15,10)
plot(test.five.x, test.five.y,
2014 Nov 27
2
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Hi Gabriel,
and thanks for answering. I'm basically just trying to find a way to use
the power of `...` in more complex scenarios and I'm well aware that this
might not be the best approach ;-)
Regarding your actual question:
"Are you suggesting methods be dispatched based on the *contents* of ...
[...]?"
Yes, I guess currently I kind of do - but not on the argument *names*
2012 Dec 11
2
lattice question: how to change the dot on boxplot to line
Hi,
How does one change the dot for the median in a boxplot drawn using
lattice? I have been looking at
> names(trellis.par.get())
[1] "grid.pars" "fontsize" "background"
[4] "panel.background" "clip" "add.line"
[7] "add.text" "plot.polygon"
2003 Apr 29
4
thick plot lines
Dear People,
In a qqplot I am doing, I get lines/points that are very thick. I've tried
setting the lwd variable to 0.1, but it doesn't seem to have any effect.
Also, I have set the value of lty to dashed, but I still get dots. The
command looks like
qqplot(cdf.inv(seq(0,1,length=size),theta,pos,len),empmargdistvec(len,theta,pos,size),
xlim=c(-theta,theta), ylim=c(-theta,theta),
2010 Nov 21
1
"negative alpha" or custom gradient colors of data dots in scatterplot ?
I know that by setting alpha to for example col = rgb(0, 0, 0, 0.1) it is
possible to see how many overlapping is in the plot. But disadvantage of it
is that single points are barely visible on the background. So I wonder if
there is possible to make setting that single points would be almost black,
but with more and more data on the same spot it would get more and more
whiteish. Or maybe it is
2014 Nov 27
0
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Janko,
I'm not entirely sure I understand your proposal. Are you suggesting
methods be dispatched based on the *contents* of ... (ie which arguments
are in there)? This seems like it would be pretty different from how
dispatch behaves now, which is entirely class based.
Even the dispatching based on ... via dots methods is class based, having
nothing to do AFAIK with the argument names. From
2006 Apr 10
2
Legend in the outer margin
Dear Rs
I have a 3x3 multiple plot. I would like to have a overall legend in
the outer right margin.
From the help archive, I found that it can be done by setting
par(xpd=NA). However, I couldn't find the correct values
for x and y co-ordinates for the legend. Please find the code snippet below:
par(mfrow=c(3,3), mar=c(4,4,0.9,0.5), oma=c(1,2,2,4),cex.main=1.1)
2003 Jan 24
4
new function: showcolors {base}
I propose to add a function that allows
to display colors selected by a text pattern
or by color vectors in a plot.
Wolfram Fischer
#--- showcolors.R
showcolors <-
function(
col = "red"
, index = NULL
, pie = TRUE
, lwd = 6
, cex = 1.0
, main = NULL
, sub = NULL
, ...
){
n.colors <- length( col )
if( n.colors > 1 ){
main <- deparse( substitute( col ) )
2014 Nov 28
1
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Well, the benefit lies in the ability to pass along arguments via `...` to
more than one recipient that use *identical argument names* and/or when
these recipients are not necessarily located on the same calling stack
layer.
I'm *not* after a *general* change in the way arguments are
dispatched/functions are called as I'm actually a big friend of keepings
things quite explicit (thus
2013 Feb 12
8
Help with functions as arguments
Hi,
I am trying to write a function which defines some arguments, then uses those arguments as arguments of other function calls. It's a bit tricky to explain, so a simple example will have to suffice. I imagine this has a simple solution, but perusing through environments and other help lists has not helped. Suppose I have two functions:
f1 = function(a)
{
b = a + 1
b
}
f2 =
2009 Jan 14
2
Kaplan-Meier Plot
dear all,
I want to plot a kaplan Meier plot with the following functions, but I fail
to produce the plot I want:
library(survival)
tim <- (1:50)/6
ind <- runif(50)
ind[ind > 0.5] <- 1; ind[ind < 0.5] <- 0;
MS <- runif(50)
pred <- vector()
pred[MS < 0.3] <- 0; pred[MS >= 0.3] <- 1
df <- as.data.frame(cbind(MS, tim, pred, ind))
names(df) <-