Displaying 20 results from an estimated 2000 matches similar to: "xYplot customizing y-axis scaling"
2009 May 18
9
Concatenating two vectors into one
Dear users,
a very simple question:
Given two vectors x and y
x<-as.character(c("A","B","C","D","E","F"))
y<-as.factor(c("1","2","3","4","5","6"))
i want to combine them into a single vector z as A1, B2, C3 and so on.
z<-x*y is not working, i tried several others
2008 Jul 28
2
axis.break on Date-x-axis in lattice xyplot
Dear list,
i am using the following code to produce a lattice xyplot, but the
axis.break-function is seemingly not executed.
Date<-seq(as.Date("2006-08-29"), as.Date("2007-08-28"), by="2 weeks")
Period<-
var1<-rnorm(27, 90000000, 30000000)
var2<-rnorm(27, 500000000,250000000)
var3<-rnorm(27, 1000000,500000)
var4<-rnorm(27, 600000,300000)
2008 Jun 20
2
Problem with "date"-x-axis in lattice
Hello list,
i am trying to plot a continous variable y against a "date" variable, both
in one dataframe named "df", using a code like this
library(lattice)
plot1<-xyplot(y~date, data=df, type="b")
"date" is of class "Date", of course, format="%d.%m.%Y", and spans two
calendar years. The problem is that the x-axis is labeled with
2008 Aug 04
1
xyplot strip=function for two conditioning variables
Dear list,
for a data structure like in df:
set.seed(100)
Treatment<-rep(c("Nitrogen","Carbon", "Sulfur"),each=9)
week<-rep(c(1,5,9),3,each=3)
genes<-rep(c("18s", "EF1b", "NR"),9)
copies<-rnorm(27, 1000000,400000)
df<-data.frame(Treatment,week,genes,copies)
i wrote this code for a xyplot:
library(lattice)
2008 Jul 16
2
barchart with bars attached to y=0-line
Dear R users,
i am using the following code to produce barcharts with lattice:
Compound<-c("Glutamine", "Arginine", "Glutamate", "Glycine", "Serine",
"Glucose", "Fructose", "Raffinose",
"Glycerol", "Galacglycerol", "Threitol", "Galactinol", "Galactitol")
2009 Jan 16
1
(no subject)
Dear users,
i just installed the lastest version of R, 2.8.1 on my computer (OS Windows
XP). Then i tried to update the packages copied from my old R version by
>update.packages(ask=F)
However i get the following warning:
"Warning: unable to access index for repository
http://cran.ch.r-project.org/bin/windows/contrib/2.8
Warning: unable to access index for repository
2008 Jun 04
2
Superscript/Subscript in main title
I have been trying to figure out how to get superscript/subscript in the
main title for a plot. I have tried various approaches and suggestions but
none of them work. I am trying to get the following as the main title of my
plot:
Emission of CO2 with time
(but note that 2 is subscript.)
I have tried
plot(main="Emission of C"expression(O[2]) "with time")
and I get error
2010 Dec 06
2
ggplot2: Controlling line width of panel borders
Dear R-users,
i encountered some problems when trying to adjust the line width of the
axes and stripes in a plot created with ggplot2.
I use the "barley" dataset of the lattice package to illustrate my problem:
library(ggplot2)
library(lattice)
barley[["SD"]] <- 5
limits <- aes(ymax=barley$yield + barley$SD,ymin=barley$yield - barley$SD)
p1 <-
2009 May 08
2
postscript()-resolution
Dear users,
another question concerning graphics for publications. My favourite journal
wants .eps-graphics,
and from older postings i adapted the following code:
postscript(file="Figure1.eps", title="Figure 1", width=11.5, height=8,
paper="a4",onefile=FALSE)
However, when checking the properties of this file, it is a .ps and not a
.eps file. So, i konverted to
2008 Jul 18
1
t-test for multiple variables
Dear list,
i try to do my first statistics with R.
Given a dataframe of three columns, where col1 is of type factor, col 2 and
col3 are numeric and pairs of observations i would like to perform a paired
t-test for each level of col1.
I would like to avoid specifying the levels of col1 manually because it
seems to me as being stupid, however, i did not figure out how to tell it R
in an
2009 Jan 16
1
Updating packages under R 2.8.1
Dear users,
i just installed the lastest version of R, 2.8.1 on my computer (OS Windows
XP). Then i tried to update the packages copied from my old R version by
>update.packages(ask=F)
However i get the following warning:
"Warning: unable to access index for repository
http://cran.ch.r-project.org/bin/windows/contrib/2.8
Warning: unable to access index for repository
2009 Apr 08
1
Tinn-R pdf()
Dear R and Tinn-R users,
i recently switched to Tinn-R and sending code to R works fine (R 2.8.1,
Tinn-R 2.2.0.2, OS Windows XP). However, i encountered a problem when
trying to send plots to pdf files like this:
library(lattice)
pdf("plot1.pdf")
PLOT<-(xyplot, ...)
PLOT
dev.off()
The file "plot1.pdf" is created, but it is empty.
If i paste the code above directly into
2010 Nov 30
2
Error bars in lattice barchart with groups
Dear R-users,
i want to plot gene regulation data in a lattice barchart. To illustrate
the problem i encounter, the following code uses the "barley"dataset:
library(lattice)
barley[["SD"]] <- 5
PLOT <- barchart(data=barley, yield~variety|site, groups=year,origin=0,
as.table=TRUE,
scales=list(x=list(relation="same",
rot=30),
y=list(alternating=3,tck=-1)),
2002 Aug 22
6
Q: best solution to stop traffic to huge amount of unregistered hosts
Hi
perhaps someone else already had the same problem.
Problem description:
I''m running a class B University network with approx 10k hosts
attached. I would now like to stop traffic from and to hosts
in my network not already registered in my DNS server.
This means I''ve to handle with approx 50k rules|routes. Sure
I can summarize the unalloctaed address space a little bit
with
2004 Sep 28
12
[Bug 936] S/Key authentication fails if UsePAM=no
http://bugzilla.mindrot.org/show_bug.cgi?id=936
Summary: S/Key authentication fails if UsePAM=no
Product: Portable OpenSSH
Version: -current
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: ulm at
2015 Jan 28
6
problem giving setting user permissions on specific folder
Hello:
I have this user who should have read write permissions in the folders
\\server/folder1/folder2
\\server/folder4
Using windows I set the permission for this user but it does not work. I
can not access the folders
If I try
server ~ # smbclient //server/folder1 -U username
Enter username's password:
Domain=[INTERN] OS=[Unix] Server=[Samba 3.6.23]
tree connect failed:
2008 Aug 02
4
checksum errors after online''ing device
Dear all
As we wanted to patch one of our iSCSI Solaris servers we had to offline
the ZFS submirrors on the clients connected to that server. The devices
connected to the second server stayed online so the pools on the clients
were still available but in degraded mode. When the server came back
up we onlined the devices on the clients an the resilver completed pretty
quickly as the
2009 Sep 05
2
About BIC
Hello,
I am working on getting optimal lags by using BIC, But I don't know
how to calculate BIC. Is there any code or useful function for it?
Thanks and regards,
Dan Zhao
2009 Sep 09
2
Problem with print()
Dear R-users,
I?m having for the first time a problem while printing out values in the
screen,
I have a function wich takes quite a long time to execute, and I thought
it?d be useful to insert a print statement inside the main loop to keep
control of the current iteration,
however, for some reason, the prints() are not shown in real time, and
only when I stop the execution, all prints up to
2007 Dec 12
1
xYplot problem
Dear R community,
Since upgrading to R v.2.6.1 and re-installing package Hmisc (binary
for Mac OS X v.3.4-3), I have been getting a error when trying to
make xYplots:
>plotcv<-c(34.88, 41.51, 45.81, 51.05, 51.66)
>plotcv.se<-c(2.406551, 3.071291, 4.331407, 3.213873, 4.838150)
>month<-c(6, 7, 8, 9, 10)
>library(Hmisc)
>xYplot(Cbind(plotcv, plotcv + plotcv.se,