Displaying 20 results from an estimated 500 matches similar to: "Plot Axes"
2009 Aug 17
2
Polygon function
Dear all,
I would like to plot credible interval for a function estimate in R. I
would like to plot the credible intervals as shaded region using polygon
function. Does anyone ever used that? I tried several times but I could
not obtain the right figure.
xis=sort(xi,decreasing=TRUE)
plot(xi,fm)
polygon(c(xi,xis),c(f05m,f95m))
The above piece of code produces something else.
Many thanks in
2010 Oct 15
3
Create Arrays
Hi,
For this example:
O <- c(0 0 0 2 0 0 2 0)
I want to create an array every time O[i] > 0. The array should be in the
form;
R[j] <- array(-1, dim=c(2,O[i]))
i.e. if O[i] > 0 4 times I want 4 R arrays.
Does anyone have any suggestions?
Thanks,
Doug
--
View this message in context: http://r.789695.n4.nabble.com/Create-Arrays-tp2996706p2996706.html
Sent from the R help
2009 Feb 16
1
[PATCH] ocfs2: Use the right access_* method in ctime update of xattr.
In ctime updating of xattr, it use the wrong type of access for
inode, so use ocfs2_journal_access_di instead.
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
fs/ocfs2/xattr.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 915039f..e393315 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -2592,8 +2592,9 @@
2010 Mar 29
1
xyplot second y-xis and legend
Dear list,
I try to set a secondary y-axis in a lattice xyplot. This works. However, I
am unable to set a proper legend/key together with the 2nd y-axis under
general xyplot procedures. See example below.
The combination of the par.settings with simpleTheme and other settings
seems to go wrong.
I couldn't find a solution from previous topics. Any suggestions? thanks in
advance!
Robbert
2011 Mar 08
4
If Statement
Hi,
I am having some problems using the if statement correctly. I have used it
many times previously so I dona't know what is different with this case.
Here is my problem:
I have a 1X10 matrix of values as follows:
> H.MC
[,1]
[1,] 4.257669
[2,] 7.023242
[3,] 4.949857
[4,] 5.107000
[5,] 4.257669
[6,] 4.257669
[7,] 4.257669
[8,] 4.257669
[9,] 4.257669
[10,] 4.257669
2010 Oct 13
1
Data Gaps
R community,
I am trying to write a code that fills in data gaps in a time series. I
have no R or statistics background at all but the use of R is proving to be
a large portion of my PhD research.
So far my code identifies where and the number of new entries required but I
do not know how to add additional rows or columns into an array. Any advice
on how this can be done?
Here is an example:
2010 Oct 13
1
Date Time Objects
I am trying to convert an array from numeric values back to date and time
format. The code I have used is as follows;
for (i in 0:(length(DateTime3)-1)) {
DateTime3[i] <- (strptime(start, "%m/%d/%Y %H:%M")+ i*interval)
where start <- [1] "1/1/1981 00:00"
However the created array (DateTime3) contains [1,] 347156400 347157600
347158800 347160000 347161200 347162400
2006 Oct 19
0
(Slightly OT) Re: Win32 release coming?
On 10/19/06, Zed A. Shaw <zedshaw at zedshaw.com> wrote:
>
> I got some stuff I planned on working on during rubyconf with the
> important people who can help. I''ll push out a 0.14 release at that time
> that has all the stuff.
Yay! 0.14! And us railsers know that the next version number after 0.14.xis
1.0. Can''t wait to have that!
Also, I think it was in
2011 Apr 06
0
mgp.axis.labels
Hello,
I am trying to use mgp.axis labels to locate the x-xis at a different
distance from the one specified for the y-axis. I know I could use other
functions such as mtext or axis. But I am curious to know about how to use
'mgp'axis.labels' from the Hmisc package. I tried following the example in the
documentation without success.
Sample code:
x<-1:10
y<-1:10
2012 Aug 07
1
lm with a single X and step with several Xi-s, beta coef. quite different:
Hi, (R version 2.15.0)
I am running a pgm with 1 response (earlier standardized Y) and 44
independent vars (Xi) from the same data =a2:
When I run the 'lm' function on single Xi at a time, the beta
coefficient for let's say X1 is = -0.08 (se=0.03256)
But when I run the same Y with 44 Xi-s with the 'step' function (because
I left direction parameter empty, I assume a backward
2008 Oct 27
3
ocfs2: add security EA support v4
Hi,
I split the previous support security EA patch into four patches for
review. Them besed on joel's xattr-28 branch and tao's patch "Merge
xattr set transaction".
1: move new_inode out of the transaction.
2: add ocfs2_xattr_set_handle.
3: add security xattr APIs
4: add init_security in mknod.
Best regards,
tiger
2009 Feb 16
3
[PATCH 0/2] ocfs2: two fixes for xattr -v2
Hi,
I have fixed the problems in version 1 patches. These two patches based
on the latest main line kernel.
Thanks,
tiger
> For EAs data structure in inode/block are little different from them in
> bucket. These two patches try to make them same for the most part.
>
> The first patch set xh_free_start and xh_name_value_len when EAs in
> inode/block. xh_free_start is useful to
2010 Oct 25
2
difftime error
R community,
I am trying to create an array of the time differences between datapoints
for a very large set. For some reason for 4 of the values the difference
has been calculated as NA.
Looking at the individual points two of them are "1981-03-29 01:40:00" and
"1981-03-29 02:00:00"
This is the exact same format as the other points that return values of 20
mins as expected.
2011 Feb 04
3
uniroot
Hi,
I am using the uniroot function in order to carry out a bivariate Monte
Carlo simulation using the logistics model.
I have defined the function as:
BV.FV <- function(x,y,a,A)
(((x^(-a^-1)+y^(-a^-1))^(a-1))*(y^(a-1/a))*(exp(-((1^(-a^-1)+y^(-a^-1))^a)+y^-1)))-A
and the procedure is as follows:
Randomly generate values of A~(0,1), y0 = -(lnA)^-1
Where: A=Pr{X<xi|Y=yi-1} and a is the
2009 Feb 11
2
[PATCH 0/2] ocfs2: two fixes for xattr
Hi,
For EAs data structure in inode/block are little different from them in
bucket. These two patches try to make them same for the most part.
The first patch set xh_free_start and xh_name_value_len when EAs in
inode/block. xh_free_start is useful to keep the minimum offset of the
xattr name/value. But xh_name_value_len is not very useful because we
don't have "hole" when EAs in
2007 Jan 11
3
Three horizontal axes OR Two axes on same side?
Dear list:
I need to reproduce a plot with three different horizontal axes.
I know how to make plot with two different horizontal axes (one
above, one below) using axis():
axis(1, ....)
axis(3, ....)
However, I don't know how to produce two axes on the same side of the
plot.
Any pointers or examples?
--
R. Jimenez
2010 Jul 28
2
Axes=F and plotting dual y axes
Howdy. Been running into a bit of trouble with plotting. Seems that
axes=F is not "working". Whenever I plot (either a dataframe or xts/zoo
series) and I set axes=F along with xlab/ylab="" I still get the default
axes printed in my chart. Consider this:
#Create some sample data, both 50 units of blah
series2 = c(1:50)
series1 = rep(25:74)
testdf1 = as.data.frame(series1)
2008 Oct 17
3
[PATCH 0/3] ocfs2: add security EA and ACL support v3
Hi,
These three patches fix the problems in the version two.
And them base on the Tao's patches:
ocfs2/xattr: xattr improvement
The first patch fix some problem in xattr code.
The second patch add security EA support.
The third patch add ACL support.
Best regards,
tiger
2010 Jan 20
2
How do I juxtapose two lattice graphs with common X axes such that the X axes line up?
Hello,
I would like to juxtapose two lattice graphs with common X axes such that the X axes line up. I am using plot right now but the edges are not neat and it would be nice if I could just draw 1 X axis and not both of them.
Here is my code:
upper<-bwplot(SignalUsed~as.factor(AllNormalHitsNamesCount),data=NmlOverviewArray2,
xlab="",
ylab="Intensity of Individual
2010 Dec 22
3
Estimate "between-axes" vs "within-axes heterogeneity of multivariate matrices
Hi!
My question(s) in the end might be silly but I am no expert on this, so here
it goes:
Noy-Meir (1973), Pielou (1984) and a few others have pointed to non-centered
PCA being in some cases useful. They clearly explain that "it is the case"
when multi-dimensional data display distinct clusters (which have zero, or
near-zero, projections in some subset of the axes) and the task is