Displaying 20 results from an estimated 10000 matches similar to: "R-beta: Plotting: numeric 'col' colors; col=0, col=1, .. | Nice "funclet""
2009 Jun 05
1
Antialiasing plots and text on different devices
I have a question about antialiasing when R generates bitmaps. (This follows
a thread on the ggplot2 mailing list.)
I mostly use R on Linux, although I sometimes use it in Mac and Windows as
well. On Linux, I've found that plotting shapes 15-18 via cairo results in
bad-looking output. The points are not antialiased, and they are jagged and
misshapen. Plots generated in Windows also aren't
2006 May 14
1
Dragable element
Hey all
Im having a problem... Ok, this is the situation...
I have a small product image, on which ive floated a div over it, and
defined it as draggable. Now, this works, and i can drag it around no
problem. great. but then, what i want to do is, based on the location of
that dragable element from the top and the left, to move (using the
Effect.MoveBy method) a larger image - so effective
2012 Oct 20
2
Help with programming a tricky algorithm
Hi All,
I'm a little stumped by the following problem. I've got a dataset with
the following structure:
idxy ix iy country (other variables)
1 1 1 c1 x1
2 1 2 c1 x2
3 1 3 c1 x3
. . . . .
3739 55 67 c7 x3739
3740 55 68 c7 x3740
where ix and
2011 Dec 16
0
crash in using Rcpp and inline packages.
Hi all,
I am using c++ functions in R by Rcpp and inline packages.
The code is quite simple, but the R session always automatically crash after some running time.
Does anyone here familiar with Rcpp and inline? What¡¯s the problem in the following code?
I have checked the input values, no NA and other strange value exists.
Thank you for your attention!
> mkc <- cxxfunction(
2011 Dec 16
0
Fw: crash in using Rcpp and inline packages.
Hi all,
I am using c++ functions in R by Rcpp and inline packages.
The code is quite simple, but the R session always automatically crash after some running time.
Does anyone here familiar with Rcpp and inline? What¡¯s the problem in the following code?
I have checked the input values, no NA and other strange value exists.
Thank you for your attention!
> mkc <- cxxfunction(
2008 Aug 21
1
order(x,y, decreasing = c(FALSE, TRUE)) - how / elegantly?
I've found the need to compute a version of order(x,y)
where I want the sort order
for *increasing* x and *decresing* y ...
something we could imagine could be provided in the future as
order(x,y, decreasing = c(FALSE, TRUE))
i.e., using a 'vectorized' decreasing argument.
{No, I'm not volunteering right now!}
I've found the following R-level solution and
like to quiz
2018 Jul 25
2
Question about target instruction optimization
Yes, such optimizations are something for the "last 20%" of the project,
nice to have's.
As of now, I have yet to get a feeling of what LLVM can do on its own,
depending on what it's from the instruction tables and where it needs
help, and how much in other processing stages.
As this affects the way how the instruction info table will be set-up, I
appreciate your suggestions
2019 Mar 25
2
Overlapping register groups in old 8-bit MC6809 processor.
Hi
I'm returning to my MC6809 back-end from a health-related hiatus. The assembler is tantalisingly close, but I've got some parsing and matching problems.
The register set; these overlap in annoying ways, for instance, two instructions TFR and EXG each have a single opcode, and the post-byte specifies which registers are to be involved, but the registers can be 8- or 16-bit, and 2 of
2017 Jan 05
2
WinEH funclet coloring in computeLoopSafetyInfo
I've been looking at compilation time issues in the LICM pass, and it looks to me like colorEHFunclets() is probably being called a lot more often than it needs to be for functions that have Windows EH personality functions. For one thing, the funclet coloring is happening when computeLoopSafetyInfo() is called from LoopIdiomRecognize and LoopUnswitch but those passes don't use the
2019 Aug 15
4
[LLVM] (RFC) Addition/Support of new Vectorization Pragmas in LLVM
The ivdep pragma is designed to do exactly what the name states - ignore
vector dependencies. Cray Research first implemented this in 1978 in
their CFT compiler, and has supported it since.
This pragma is typically used by application developers who want
vectorized code when the compiler cannot automatically determine safety;
it is not equivalent to the OpenMP SIMD pragma in that the compiler is
2016 Apr 04
2
How to call an (x86) cleanup/catchpad funclet
I've modified llvm to emit vc++ compatible SEH structures for my
personality on x86/Windows and my handler works fine, but the only thing
I can't figure out is how to call these funclets, they look like:
Catch:
"?catch$3@?0?m3 at 4HA":
LBB4_3: # %BasicBlock26
pushl %ebp
pushl %eax
addl $12, %ebp
movl %esp, -28(%ebp)
movl $LBB4_5, %eax
2006 Apr 11
1
gaussian family change suggestion
Hi,
Currently the `gaussian' family's initialization code signals an error if
any response data are zero or negative and a log link is used. Given that
zero or negative response data are perfectly legitimate under the GLM
fitted using `gaussian("log")', this seems a bit unsatisfactory. Might
it be worth changing it?
The current offending code from `gaussian' is:
2007 Nov 28
1
ifelse function
Hi there,
I need help with IFELSE function.
The column g of my dataset pth, pth$g consists of "aa", "ao", "dcl", "iy",
"sh".
The last few values of pth$g looks like:
[4496] sh ao ao sh iy dcl dcl aa iy iy aa sh ao ao
Levels: aa ao dcl iy sh
I want to convert these values into 1,2,3,4,5. I tried to use a loop and I
found the following
2012 Mar 10
1
applying a function in list of indexed elements of a vector:
Hi,
I have a vector
Y1 <-c(8, 11, 7, 5, 6, 3, 6, 3, 3)
and an index
iy <-c(c(1, 2),c(1 2), c(1, 2, 3, 4), c(2, 3, 5), c(4), c(5, 6, 7), c(7,
8, 9))
how can I produce the mean, or the sum of the elements specified in the
index iy from the vector Y1?
expecting something like this for the sum:
Y2
19 19 31 24 5 15 12
I thought lapply function may perform this, but does not work:
2009 Mar 14
4
persp plot + plotting grid lines
Dear all;
Does anyone know how to add grid lines to a persp plot? I've tried
using lines(trans3d..) but the lines of course are superimposed into
the actual 3d surface and what I need is something like the plot shown
in the following link:
http://thermal.gg.utah.edu/tutorials/matlab/matlab_tutorial.html
I'll appreciate any ideas
Thanks
PM
2011 Jun 08
0
PS to Taking Integral and Optimization using Integrate() and Optim()
Hello again.
Thank you for the comments. I have written these codes.
iy=function(x)
{
res=NULL
ress=0
for (i in (1:2))
{
for (xx in x[i])
{
fy=function(y) (exp(-exp(y+log(xx)))*(-exp(y+log(xx)))^2)/(1-exp(-exp(y+log(xx))))
res=c(res,integrate(fy,-6.907,-1.246)$value)
ress=ress+res
}
}
return(ress)
}
iy(c(1,1))
integrate(fy,-6.907,-1.246)$value
In 1D optimize() works perfectly on iy(). However
2019 Apr 08
3
Samba 4.8.11 for rhel7/centos7 rpms
Hi everyone,
In case anyone's interested, I've posted the rpm builds of samba 4.8.11
that I'm using on RHEL7.6. (I run these in VMs, serving as AD DCs for my
SOHO). Comments most welcomed.
http://nova.polymtl.ca/~coyote/dist/samba/samba-4.8.11
If you're on RHEL7/Centos7, you've got several repos to choose from:
http://azzurro.ezplanet.net/el7
2012 Jan 30
2
Euler identity with complex exp
Hi,
Am i doing something silly here in expecting Euler's
formula to be handled by exp? exp( ix ) = cos x + i sin x.
The first example below follows this, the others not.
Thanks for the education!
> exp( complex(real = 0, imag = 2*pi) )
[1] 1-0i
> exp( complex(real = pi, imag = 2*pi) )
[1] 23.14069-0i
> exp( complex(real = pi/2, imag = 0) )
[1] 4.810477+0i
[[alternative HTML
2006 Jan 24
1
Basic graphics question
I have a toy example given here:
par(fig=c(0,1,0,0.05))
par(mar=c(0,0,0,0))
par(plt=c(0,1,0,1))
par(oma=c(0,0,0,0))
par(ann=F)
plot(c(0,1),c(0,1),type='n',xlab='',ylab='',main='')
rect(0,0,1,1,col='gray75')
What parameter am I missing to make the gray rectangle use the entire figure
region? I am trying to build a plot from
2008 Sep 25
2
ggplot, qplot in loop
Dear List,
yes, me again trying to work with qplot ;-)
I would like to make several single plots within a loop, like this
(simplified and so on...):
trials <- c("A","B","C")
mycolours <- ("wheat","darkolivegreen","lightgreen",