Displaying 20 results from an estimated 1000 matches similar to: "Lattice device page options-margins"
2010 Jan 12
2
Placing eps files from R into Adobe InDesign documents: specifying fontfamily
This is a solution I am posting for a problem that others may have.
If you want to:
1. Place lattice graphics from R into an Adobe InDesign document, and
2. Use the export as eps function in R to maximize resolution (it is much
better than exporting as a metafile or bitmap), and
3. Use long strings of text in your titles or captions or to label your
axes.
Then you will have problems because:
2005 Mar 02
1
Text in lattice Graphics outside plot area
I am trying to get the same text printed on each page of a multi-page
series of bar charts. The text need to appear in the upper left-hand
corner of the page, outside of the plot area. A watermark might be the
closest analogy to what I am after
This is what I have so far:
PData <- na.omit(subset(TData,Matrix == "Product"))
barchart(AdjResND0 ~ reorder(Compound, Sort) | Label ,
2010 Aug 29
3
Three-dimensional contingency table
Hi,
I am trying to assemble a three-way contingency table examining the presence/absence of mussels, water depth (Depth1 and Depth 2) and water velocity (Flow vs. No Flow). I have written the following code listed below; however, when run the glm I get the following message, "Error in model.frame.default(formula = Count ~ MP + wd + wv, drop.unused.levels = TRUE) : variable lengths differ
2010 Jan 15
1
What is the newline escape sequence when using the Hershey fontfamily?
Hello!
The question is simple: What is the escape sequence for a new line when
using Hershey fonts? I obviously tried '\n' but it didn't work (see the
sample below). I looked at 'demo(Hershey)' but all it only shows escape
sequences for printable characters.
The sample I've been using to try to find the escape sequence is below.
You can comment or un-comment the
2009 Apr 05
1
problem with lattice tiff or bitmap: character size and color
Hi all,
I am trying to make tiff files of lattice plots at a resolution greater
than 300 dpi required by a journal (PLoS ONE). I have tried both the tiff
and bitmap functions. tiff keeps panel colors but reduces axes and tick
labels so they are nearly invisible. bitmap maintains correct label size
but only produces greyscale. Regular plots work fine with tiff; the
problem is only with lattice
2018 Mar 25
1
Limit in Directory Hierarchy?
A quick question - is there a limit to the number of levels one can go down when setting the directory in R studio?
I ask because I have been trying to set the directory to a folder 8 levels down which R studio won't allow, and when I try to set the directory through Session/Set Working Directory, it won't even show the lowest level folder:
setwd("C:/Users/supermollusc/Desktop/151017
2001 Aug 25
2
Writing R Library
Hi there,
I'm trying to write an R library (for Windows version) when I encountered
this problem.
I put in a dataset called mussels into a sub-folder, data (I saw this is
how it is done in other libraries). However when I load the library in R
and typed:
data(mussels)
it complains it cannot find the data set in the library.
Everything else works fine (so far), am I missing something
2005 Feb 03
1
two issues
I'm working on a graphic but have run into a road block about two
issues. I don't have a color printer so I want to produce the graphic in
black and white. I'm currently using this
statement trellis.device(bg="white") but the body of the graphic contains
color. What is the code to create the whole thing in black and white. The
other issue might be a bit more tricky.
2005 Feb 10
1
skip missing values in plots
I really like these Trellis graphics but how do I get this code to
skip the missing?
logreg<-read.csv("logreg.csv", header=TRUE, sep=",", na.string=" ")
attach(logreg)
bwplot(yesno~bc_pcb_tot |varlist, data=logreg, main="Box Cox PCB
transformation", auto.key=TRUE, fontfamily = "HersheySans" )
Dean Sonneborn M.S.
Public Health Sciences *
2011 Nov 28
1
code problem with the optim() function
Please forgive me if someone has seen this duplicated email, because I sent
the email to the wrong address just now.
Hi, all,
I'm estimating an inter-rater coefficient, Aickin (1990)'s alpha. It's been
a long time for me to figure out how to make it work, but it's still of no
avail. The problem seems to be my code with the optim() function. Can
anyone help me take a look at the
2004 Sep 13
1
How to show the symbol of Angstrom ?
Also, I am wondering if there is any source where the expressions of
many symbols are collected.
Thanks you very much!!!
Li, Xiang(Sean)
2005 Aug 11
2
scatter plot
I'd like to do a simple scatter plot but instead of using the variable
values on the X axis I would like to plot the percentiles. I searched in
the manual for percentiles but did not find what I was looking for. I've
been using SAS for several years but I new to R.
--
Dean Sonneborn
Programmer Analyst
Department of Public Health Sciences
University of California, Davis
(916) 734-6656
2011 Jun 19
1
Accessor functions in lattice graphics
I know about the current.row, current.column, and panel.number functions that
are useful within panel functions written for lattice. Are there easy ways
to obtain the names of the conditioning variables (those appearing after |)
and their values for the current panel?
Thanks
Frank
-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context:
2006 Feb 07
7
select list error - following Agile guide
I would swear that I am tracking exactly the method used in Agile
book...
TypeError in Placements#edit
Showing app/views/placements/_form.rhtml where line #33 raised:
wrong argument type String (expected Module)
Extracted source (around line #33):
30: <tr>
31: <td><label for "type">Type</label></br><%=
32: options = [["Select
2006 Mar 20
16
logic inside a view file
I am quite certain I have heard it said not to put business logic inside
view code but I have a report that I want to display 3 different
possibilities of text based upon the value of a column. Would I just
take the same type of if/then logic that I would use in a controller and
put it inside erb <%= %> stuff?
Craig
2011 Jan 26
1
text labels in Trellis plot
Dear all,
I need to generate plots in which the points of the plot are replaced
by text labels, such as "dog" and "cat". The usual way of specifying
the plotting symbol with pch works only if the labels are single
characters, as far as I know. So,
plot(runif(3), pch=c("A", "B", "C"))
will work OK, but
plot(runif(3), pch=c("dog",
2006 Aug 01
1
R crashes using pdf() windows() or postscript()
Dear HelpeRs,
I have a script where I save several thousands of graphics. These are
then used in Latex through Sweave. Unfortunately R crashes while making
these plots and Windows pops up some message that I run low on virtual
memory. I tried to save the plots using pdf(), windows() and
postscript() and also tried to run it with R CMD BATCH myscript.R. But
after a while R slows down and crashes
2009 Jun 24
1
parallel rotated strips with color gradient
Hi,
I want to produce two parallel rotated strips with color gradient. So
far, the sample strip is something produced by this:
pushViewport(viewport(x = unit(0.638, "npc"), y =unit(0.386, "npc"),
width=.62, height=0.006, angle=137.2))
grid.rect(y=100:1/100, just="top",
gp=gpar(col=NA,
fill=colorRampPalette(c("lightgray",
2009 Jun 23
2
curvedarrow (some graphics problem)
Hi there,
I just wonder how to draw this kind of picture...
http://www.nabble.com/file/p24158796/b.jpg
http://www.nabble.com/file/p24158796/a.jpg
and this is what i have done
%%%%%
library(shape)
library(diagram)
curve(sin(x),bty="n",-8,8,yaxt="n",ylab="",xaxt="n",type="n",xlab="")
axis(1,labels=F,at=seq(-8,8,1))
2004 Jun 11
7
Can't open configuration file
Hi I'm getting
Jun 11 13:12:46 "Fatal: Can't open configuration file /home/dovecot/dovecot-pgsql.conf: Permission denied
this file have fulle permissions and has belonged to dovecot and root but still no joy
what am i missing must be something stupid on this side
Thanks for the previos comments about scripting I am swithcing to postgress for the mail env and will look at mysql