Displaying 20 results from an estimated 482 matches for "fg".
Did you mean:
cfg
2005 Jun 24
1
Mahalanobis distances
...community
Have just recently got back into R after a long break and have been amazed at
how much it has grown, and how active the list is! Thank you so much to all
those who contribute to this amazing project.
My question:
I am trying to calculate Mahalanobis distances for a matrix called "fgmatrix"
>dim(fgmatrix)
[1] 76 15
>fg.cov <- cov.wt(fgmatrix)
>mahalanobis(fgmatrix, center = fg.cov$center, cov = fg.cov$cov)
Then I get an error message "Covariance matrix is apparently singular"
What does this mean? I can't see anything strange about the covarian...
2008 Jun 06
2
Why doesn't formatC( x, digits=2, format="g") doesn't always give 2 sig figs?
Hi all
I am not a C programmer, but I am trying to understand formatC to
get consistent printing of reals to a given number of significant
digits.
Can someone please explain this to me? These first three give what
I expect on reading ?formatC:
> formatC(0.0059999, digits=2,format="fg",flag="#")
[1] "0.0060"
> formatC(0.59999, digits=2,format="fg",flag="#")
[1] "0.60"
> formatC(5.9999, digits=2,format="fg",flag="#")
[1] "6.0"
This seems consistent with what I read (but perhaps do not
un...
1997 Jun 30
0
R-beta: Color specifications -- simple 'bg' / 'fg' swapping -- proposal
Consider the following example :
data(iris)
attach(iris)
par(bg = 'midnightblue', fg = 'yellow')
plot(Petal.Length, Petal.Width, main = "Fisher's iris data", sub = "3 kinds")
##>>> gives black axis labels and titles ...
## Currently, the plot I want is produced by
par(bg = 'midnightblue', fg = 'yellow', col.axis='yellow...
2008 Jan 07
1
How to rearrange lattice graphics output?
My question arises when I use levelplot graphics. For example,
levelplot(z~x*y|fg) where fg is a factor with three levels of
'a','b','c'. The panels come out in a default order. I would like to
rearrange the panels in a manner of 'c','b','a'. I used
fg<-ordered(fg, levels=c('c','b','a'))
But the panel...
2008 Jun 09
1
Bug/Error in formatC? (Was: Why doesn't formatC( x, digits=2, format= "g")...)
...Hi all
I am not a C programmer, but I am trying to understand formatC to
get consistent printing of reals to a given number of significant
digits.
Can someone please explain this to me? These first three give what
I expect on reading ?formatC:
> formatC(0.0059999, digits=2,format="fg",flag="#")
[1] "0.0060"
> formatC(0.59999, digits=2,format="fg",flag="#")
[1] "0.60"
> formatC(5.9999, digits=2,format="fg",flag="#")
[1] "6.0"
This seems consistent with what I read (but perhaps do not
un...
2002 May 29
1
bug in xfig()?
I'm using (Linux version) xfig() within a function
and then simple matplot() and matline() plots.
Although I do not define any bg or fg default color,
sometimes all lines in the final fig file are green.
The same code works as (I) expected if I use
x11() or pdf().
This is what I'm doing:
I open 2 devs:
xfig()
dev.set(2)
layout(mat1)
xfig()
dev.set(3)
layout(mat)
And then use matplot and matline...
2020 Apr 30
2
Possible documentation problem/bug?
It seems like there is no obvious way in the documentation to convert the
expressions in the dots argument to a list without evaluating them. Say, if
you want to have a function that prints all its arguments:
> foo(abc$de, fg[h], i)
abc$de
fg[h]
i
...then converting them to a list would be helpful.
Using substitute(...) was the first thing I tried, but that only gives
the *first
*argument in dots. It turns out that there is a way to do this, using
substitute(...()), but this does not appear to be in either the substitu...
2012 May 26
2
CentOS 6.2: suspending vim with ctrl-z and resuming with fg - stopped working
Hello,
pardon my chaotic question, but does anybody have an idea,
why can't I suspend vim-enhanced-7.2.411-1.6.el6.x86_64
with a CTRL-Z, then execute few commands at my bash prompt
and then get back to the vim session again with "fg"?
It has stopped working at my CentOS 6.2 machine (I haven't
noticed exactly when) but works fine with CentOS 5.x.
I'm using PuTTY to login to both. The error message I get is:
afarber at www:~> fg
sudo vim test.pl
~
[1]+ Stopped sudo vim test.pl
(and nothing co...
2002 Nov 16
0
formatC with format="fg" displays number in exponential notation (PR#2299)
Full_Name: Frederic Schutz
Version: 1.6.1
OS: Linux
Submission from: (NULL) (128.250.252.193)
The result of the following commands:
> formatC(9.9, 1, format="fg")
[1] "1e+01"
> formatC(99.9, 1, format="fg")
[1] "1e+02"
does not seem to be coherent with what the help page says:
> format: equal to `"d"' (for integers), `"f"', `"e"', `"E"', `"g"'...
2020 Oct 06
0
understanding as.list(substitute(...()))
...imed that:
"
There is no documented reason for this to work (AFAIK), so again, I
would guess this is a side-effect of the implementation, and not a API
feature you should rely on. This is somewhat borne out by the
following:
> foo <- function(...) substitute({...()})
> foo(abc$de, fg[h], i)
{
pairlist(abc$de, fg[h], i)
}
> foo(abc$de, fg[h], , i) # add a missing argument for extra fun
{
as.pairlist(alist(abc$de, fg[h], , i))
}
which is not something you would expect to see at the user level. So
my recommendation: don't use ...() and pretend that you never
disco...
2005 Oct 24
0
query on xtable(Sweave)
Dear all,
I am exporting to latex a dataframe via xtable(Sweave). My dataframe
includes 4 rows and 4 columns. The first two rows containing real
values(e.g. a laboratory parameter's mean value), and the two rows at the
bottom containing only integers (number of cases).
using display=c('fg','fg','fg','fg') as an argument to xtable I tried to
reach my goal, of presenting the table with numbers formatted with decimal
paces in the upper rows, but with the numbers in the lower rows as integers
(without superfluous commas and decimal places), as shown in the ex...
2010 Mar 19
2
lattice grob
...high-level grob. I tried the following,
latticeGrob <- function(p, ...){
grob(p=p, ..., cl="lattice")
}
drawDetails.lattice <- function(x, recording=FALSE){
lattice:::plot.trellis(x$p)
}
p1 <- xyplot(1:10 ~ 1:10)
g1 <- latticeGrob(p1)
grid.draw(g1) # works fine
but,
fg <- frameGrob(layout = grid.layout(1,1))
fg <- placeGrob(fg, g1, row = 1, col = 1)
grid.draw(fg)
Error in UseMethod("depth") :
no applicable method for 'depth' applied to an object of class "NULL"
Ideas are most welcome,
Best regards,
baptiste
> sessionInf...
1998 Oct 01
2
R-beta: dyn.load() on a Linux Red Hat 3.0.3 system
I'm trying to install R on a Red Hat 3.0.3 system, but cannot seem to
get dyn.load() to fuction.
The configure script says:
checking for dlopen in -ldl... no
And compiling fails at
../lib/libunix.a
Any suggestions? What should I do to be able to use dyn.load()? I
cannot upgrade the system to a higher version of Red Hat, but I will
probably get away with installing some new
2020 Oct 06
3
understanding as.list(substitute(...()))
I probably need to be more specific. What confuses me is not the use
of substitute, but the parenthesis after the dots. It clearly works
and I can make guesses as to why but it is definitely not obvious.
The following function gives the same final result but I can
understand what is happening.
dots <- function (...) {
exprs <- substitute(list(...))
as.list(exprs[-1])
}
In the
2009 Aug 17
2
[PATCH] kms: Fix <nv11 hardware cursor.
...2 +
4 files changed, 82 insertions(+), 40 deletions(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index f2fe0e8..7acddf1 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -333,7 +333,14 @@ done:
static void
drmmode_set_cursor_colors (xf86CrtcPtr crtc, int bg, int fg)
{
+ NVPtr pNv = NVPTR(crtc->scrn);
+ drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+ struct nouveau_bo *bo = drmmode_crtc->cursor;
+ nouveau_bo_map(bo, NOUVEAU_BO_WR);
+ nv_cursor_convert_cursor(pNv->curImage, bo->map, nv_cursor_width(pNv),
+ 64, 32, fg | (0xf...
2002 Jul 03
2
Scientific notation
I'm writing a load of output to a file using cat(...), but I can't work out
how to turn off scientific notation for small numbers. When I originally
tried this a while a go I ended up building up a string variable, which is
rather clumsy...
Many thanks,
David
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2002 Sep 10
8
[Bug 369] Inconsistant exiit status from scp
...of scripts which check for the return values of scp to indicate success
or failure.
In fact it does the good thing on nonexistent files/dirs/etc, but fails in case
of auth failure, name resolution failures and so on (the number after "rtfm" in
the prompt reports the cmd exit status):
fg!rtfm 0 (pts/2) ~ $ scp -v root at mod-tsf.pitux.com:.bashrc /tmp
Executing: program /usr/bin/ssh host mod-tsf.pitux.com, user root, command scp
-v -f .bashrc
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for...
2010 Sep 21
1
Colorramp in Maptools, how to choose min and max values for the fg= argument
...r:
jet.colors = colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan",
"#7FFF7F", "yellow", "#FF7F00", "red", "#7F0000"))
n=100
cols <- jet.colors(n)
Intervalls = cut(as.numeric(Vector),n, na.rm=TRUE)
fgs <-cols[Intervalls] ## is there some option/possibility here to
choose colours differently ??
plot.Map(Shape.map, fg=fgs, ol=NA, bty="n", xlab="", ylab="", xaxt="n",
yaxt="n")
My problem is the following: I would like to choose minimal and max...
2010 Jul 17
1
Bug 14340 - Symbols() plots with wrongly scaled y-axis
...I've plotted horizontal
and vertical lines at x=45,50,55, and y=45,50,55, as well as two squares with
side=10. The squares are also overlapping in the vertical scale.
Steps to reproduce:
Here are the commands I used to generate this:
maptrees = function(n=1,a=1,b=1,h=2,view="horz",fg=1,np=FALSE,add=TRUE) {
#n = tree density (#/m2)
#a = crown horizontal radius (m)
#b = crown vertical radius (m)
#h = tree height (m)
#view = "horz", "vert"
#np = TRUE if new plot desired
if (np) {
quartz(width=6, height=6)
ad...
2003 Sep 29
5
colours in dotchart (PR#4343)
Problem: neither fg or bg
nor color work properly in dotchart.
version: R-1.7.1 for windows
code which shows the errors:
x <-
matrix(rnorm(16),ncol=2,dimnames=list(paste("a",1:8,sep=""),c("before","afte
r")))
dotchart(x,fg="blue",bg="lightgrey")
dotcha...