Displaying 20 results from an estimated 2000 matches similar to: "Plotmath, sweave and lattice graphics interaction problem"
2010 Jul 13
1
latex table question
Hi:
My head is spinning with this latex doc so hopefully after I align my tables to
the left of the page
my headache are going to be over. I always use:
\hspace*{-0.1in}
to move my figures horizontally to the left margin of the page but the table
below doesn't move at all,
but instead it gets sideways. Not sure if \begin{landscape} has something to do
with it or is just me.
I? hope someone
2023 Nov 17
1
Can someone please have a look at this query on stackoverflow?
Dear Ashim,
I don't think the aspectratio is appropriate in this context because
it would imply that the beamer (LaTeX) class is used but you're actually
using the article (LaTeX) class.
You may use specifications of the geometry package rather than
specifying options to the class:
e.g. replace your current header:
---
title: "Testing landscape and aspect ratio"
output:
2023 Nov 18
1
Can someone please have a look at this query on stackoverflow?
Dear Olivier,
Many thanks for your reply.
This works well for me.
How did you come up with the pagewidth / pageheight numbers? I do
understand that their ratio = 16:9,
but how did you choose these numbers?
Best Regards,
Ashim
On Fri, Nov 17, 2023 at 9:25?PM Olivier Crouzet
<olivier.crouzet at univ-nantes.fr> wrote:
>
> Dear Ashim,
>
> I don't think the aspectratio is
2008 Sep 09
2
match problem by rownames
Hi all,
While dat['a1',] and dat['a10',] produce the same results in the
following example, I'd like dat['a1',] to return NAs.
dat <- data.frame(x1 = paste(letters[1:5],10, sep=''), x2=rnorm(5))
rownames(dat) <- dat$x1
dat['a1',]
dat['a10',]
> sessionInfo()
R version 2.7.2 (2008-08-25)
i386-pc-mingw32
locale:
2012 Nov 19
6
tcltk freezing using MS Windows for R-2.14+
I am the maintainer of a Bioconductor package (affylmGUI) which uses
tcltk. It freezes inconsistently on MS Windows, but not Mac or Unix. see
details below.
After considerable testing I have reduced the problem from a few
thousand lines of code to 30 lines!
If you paste the following lines of code into an R window:
testGUI <- function(){
require(tcltk)
MainWindow <-
2023 Nov 18
2
Can someone please have a look at this query on stackoverflow?
Dear Olivier,
Many thanks for your reply.
Very cool.
You know what I thought ? I thought you had modified the A4 sheet size
to compute the paperheight and paperwidth ?
I wonder if that's another way of proceeding.
Best,
Ashim
On Sat, Nov 18, 2023 at 12:51?PM Olivier Crouzet
<olivier.crouzet at univ-nantes.fr> wrote:
>
> Dear Ashim,
>
> these are documented in the LaTeX
2009 Mar 17
2
link in base help file fails.
I run R on MS Windows. In R2.9.0dev, I type ?base to get "R help for package
base" to open. I then select ".First" from the list of contents, getting a page
headed: "Initialization at Start of an R Session". About half way down there is
a sentence:
The command-line flag --vanilla implies --no-site-file, --no-init-file,
--no-restore and --no-environ. Under
2023 Nov 18
1
Can someone please have a look at this query on stackoverflow?
Dear Ashim,
these are documented in the LaTeX 'geometry' package (see for example
on CTAN: https://ctan.org/pkg/geometry). As I added in my response on
Stackoverflow, several parts in the RMarkdown header actually concern
information that are processed by LaTeX to actually generate the PDF,
among which the 'geometry' line. For someone who is used to working with
LaTeX, it is
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list,
I read in ?plotmath that I can use bgroup to draw scalable delimiters
such as [ ] and ( ). The same technique fails with < > however, and I
cannot find a workaround,
grid.text(expression(bgroup("<",atop(x,y),">")))
Error in bgroup("<", atop(x, y), ">") : invalid group delimiter
Regards,
baptiste
sessionInfo()
R version
2010 Sep 09
1
scalable < > delimiters in plotmath
Dear list,
I read in ?plotmath that I can use bgroup to draw scalable delimiters
such as [ ] and ( ). The same technique fails with < > however, and I
cannot find a workaround,
grid.text(expression(bgroup("<",atop(x,y),">")))
Error in bgroup("<", atop(x, y), ">") : invalid group delimiter
Regards,
baptiste
sessionInfo()
R version
2017 Jul 13
2
bnlearn and cpquery
Hi all
I have built a Bayesian network using discrete data using the bnlearn
package.
When I try to run the cpquery function on this data it returns NaN for some
some cases.
Running the cpquery in debug mode for such a case (n=10^5, method="lw")
creates the following output:
generated a grand total of 1e+05 samples.
> event has a probability mass of 14982.37 out of
2006 Dec 22
5
substitute creates an object which prints incorrectly (PR#9427)
The function "substitute" seems to fail to make a genuine
substitution, although the printed verision seems fine. Here is an
example.
> m <- substitute(Y <- function(x) FUN(x+1),
+ list(Y = as.name("y"), FUN = as.name("sin")))
> m
y <- function(x) sin(x + 1)
> eval(m)
> y
function(x) FUN(x+1)
However the story doesn't end there. The
2023 Nov 18
1
Can someone please have a look at this query on stackoverflow?
And indeed again (I did not understand your previous question exactly
at first), the 'hard-coded' definition of a landscape a4 sheet would
therefore be:
paperwidth=29.7cm, paperheight=21cm
Olivier.
On Sat, 18 Nov 2023 13:20:49 +0530
Ashim Kapoor <ashimkapoor at gmail.com> wrote:
> Dear Olivier,
>
> Many thanks for your reply.
>
> Very cool.
>
> You know
2010 Nov 03
1
rgl.snapshot() : no longer works?
Hi all,
> library(rgl)
> plot3d(1,1,1)
> snapshot3d("somefile.png")
Error in rgl.snapshot(...) :
pixmap save format not supported in this build
Why does this no longer work?
thanks,
Remko
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
[3]
2008 Mar 25
1
regexp with [:upper:] (PR#11032)
Full_Name: Mark Bravington
Version: 2.6.2 patched
OS: Windows XP Pro
Submission from: (NULL) (140.79.22.104)
> grep( '[:upper:]', letters, val=T) # shurely shouldn't match anything ??
[1] "e" "p" "r" "u"
The converse ( '[:lower:]' and LETTERS) seems to work OK.
--please do not edit the information below--
Version:
platform =
2013 Apr 23
1
httpd error with and help_type = 'html', package = NULL
Having loaded a package that masks an object from another package, calling
help(conflictedname, help_type = 'html')
instead of producing a page giving the choices of help page available
The page produced is
Error in httpd("/library/NULL/help/nobs", NULL, NULL, c(48, 6f, 73, 74, :
replacement has length zero
This example is reproduced using
library(gdata)
help(nobs,
2011 Aug 15
2
A small nag
Hi,
I am not sure how to fix the following error.
LGD <- c(11.6, 12.3, 15.8, 33.1, 43.5, 51.3,
67.3, 84.9)
cor (x=(file [1:47231,3:10]), y= rep (LGD, 47231), method = "pearson")
Error in cor(x = (file[1:47231, 3:10]), y = rep(LGD, 47231), method =
"pearson") :
incompatible dimensions
> sessionInfo()
R version 2.13.0 (2011-04-13)
2010 Oct 19
1
DLL not found
Dear R-helpers,
I have a fresh installation of windows vista, and R 2.12.0 (session info below).
Problem:
> require(sp)
Loading required package: sp
Error in library.dynam(lib, package, package.lib) :
DLL 'lattice' not found: maybe not installed for this architecture?
> require(lattice)
Loading required package: lattice
Failed with error: ?package 'lattice' is not
2011 Sep 16
1
grep problem in R-devel 2.14 r57004
Problem below with PCRE grep in R-devel; works fine in R-patched. (Unless there's been an absolutely massive change in rules for updated PCRE version 8.13; jeez I hope not)
> grep( '[.][.]', '', perl=TRUE)
Error in grep("[.][.]", "", perl = TRUE) :
invalid regular expression '[.][.]'
In addition: Warning message:
In grep("[.][.]",
2010 Nov 24
1
Difficulty loading packages into R version 2.12.0
Apologies for my previous effort in HTML which apparently was scrubbed
Dear R-users
I wonder if I could get advice on the above problem
I have just installed V 2.12.0 (I chose only the 32-bit version) into a new
directory (C:/R) on a 64bit Windows 7 machine
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_Australia.1252