Displaying 20 results from an estimated 10000 matches similar to: "Reorder factor and address embedded escapes"
2010 Dec 11
0
is there a packge or code to generate markov chains in R
Hi,
if i have data in the following time series format:
time, amount, state
1 2222 A
1 333 B
2 45 A
2 77 B
where states could be n and time periods t is there a package in R that would calculate the transition probabilities in a markov chain.
for each t except t=0 to generate
A B
A
B
perhaps the best structure might
2005 Apr 15
2
abbreviate or wrap dimname labels
For a variety of displays (mosaicplots, barplots, ...)
one often wants to either abbreviate or wrap long labels,
particularly when these are made up of several words.
In general, it would be nice to have a function,
abbreviate.or.wrap <-
function(x, maxlength=10, maxlines=2, split=" ") {
}
that would take a character vector or a list of vectors, x,
and try to abbreviate or wrap
2005 May 31
2
Barplot2 Title
Hello,
I would like to know if it's possible to modify the name of groups of bar because on my barplot2, I have 5 groups of bars and one of them is called "User Contributes" and when I save the plot "User contributes" is to big so I don't have it on my plot! Is it pssible to put the name vertically!
Thanks!
Sabine
---------------------------------
ils, photos
2005 Mar 21
3
Force labelling of x-axis
Hi,
I'm trying to do a box-whisker plot of two columns of a data frame, a
list of category names in one column vs. some numerical values in the
other. The plot itself works fine, but only a few points of the x-axis
( the category names ) are labelled. I think that this is because the
category names are too long.
Is there any way to force R to label each x-axis value, preferably at a
2004 Aug 27
3
reorder [stats] and reorder.factor [lattice]
It was recently pointed out on the lists that the S-PLUS Trellis suite has
a function called reorder.factor that's useful in getting useful ordering
of factors for graphs. I happily went ahead and implemented it, but it
turns out that R (not S-PLUS) has a generic called reorder (with a method
for "dendrogram"). Naturally, this causes R to think I'm defining a
method for
2009 Mar 25
2
need help with ordering of plots
I want to do a series of contour plots, 4 in all. The data is coming
from a data frame named "nd.frame", which has elements "xdf", "ydf",
"zdf", and "pndt". I am treating "pndt" as a factor, and it has four
levels. I make a call to the lattice graphics routine "contourplot"
like so:
2002 Sep 09
1
No reorder.factor in R
I was using R 1.5.1 today with an old script from S-Plus and discovered that
R does not have reorder.factor.
It's a very simple function, but very handy for re-arranging factors in
lattice graphics (among other places). Would it make sense to add this
function to the base code
in order to increase compatability with S-Plus and add additional
functionality?
reorder.factor <-
2008 Oct 30
1
trying to figure out reorder.factor in gdata
I'm trying to make a factor with levels for day of week, appear as
Monday-Sunday, rather than alphabetically. I'm using reorder.factor
from gdata package, but obviously not using it properly. What am I
doing wrong? Thanks.
>data <- read.table("DataEarly2008.txt", sep=" ", header=T, as.is=1:2)
>str(data)
'data.frame': 7953 obs. of 9 variables:
$
2012 Nov 01
41
[Request for review] [RFC] Add label support for snapshots and subvols
From: Anand Jain <anand.jain@oracle.com>
(This patch is for the review/test not yet for the integration).
Here is an implementation of the feature to add label to the
subvolume and snapshots. Which would help sysadmin to better manager
the subvol and snapshots.
This can be done in two ways, one - using attr which is user land
only changes but drawback is able to change the label
2007 Oct 12
2
missing attribute: reorder
I am trying to use an integer object as a flag item for displaying a
link on a page called reorder that is a column in my PlanProcedures
table.
I''m getting an error that says
The Header is NoMethodError in Manage_plan_procedures#list
missing attribute: reorder
Here is what my model looks like:
>> PlanProcedure.column_names
=> ["id", "plan_id",
2010 Mar 23
2
using reorder in dotplot
Hi,
Please help to correct my error in the following. I want to plot the values
of 'x" in increasing order.
-----------------------------------
library(lattice)
Name<-c("A","B","C")
x<-c(15,20,10)
test<-data.frame(Name,x)
dotplot(Name~x,test)
dotplot(reorder(Name,x)~x,test)
"reorder" has no effect!
Thanks.
Chetty
------------------------
2010 May 15
1
Barchart reorder
Hi fellow R users,
I have a dataset that looks something like this.
species class abundance
K 1 592
K 2 288
G 1 254
G 2 239
C 2 173
D 2 123
E 3 89
F 2 87
B 2 86
H 2 82
I 1 79
J 2 76
B 1 73
D 3 72
A 2 62
L 2 58
I want to plot a stacked barchart. species is the x-axis, abundance is
y-axis, and class will appear as the stacks in different colours. I
need the species to be displayed in descending
2010 Oct 05
3
reorder always returns "ordered"
Or at least is seems that way to me. It's not a big problem, but the
behavior doesn't match the documentation. (I think r-help is the
place to report this. )
> x <- factor(1:5)
> x.ro <- reorder(x, rnorm(5))
> is.ordered(x.ro) # should be FALSE according to ?reorder
[1] TRUE
>
> x.ro <- reorder(x, rnorm(5), ordered=FALSE)
> is.ordered(x.ro) # should be FALSE
2019 May 16
2
Delinearization validity checks in DependenceAnalysis
Hello
Under the proviso that it's been a while since I looked into any of these things...
On 05/15, Bardia Mahjour via llvm-dev wrote:
> I also get correct results for my example (for a 64-bit target) if the upper
> bounds are changed to unsigned. The reason is simply because clang zero-extends
> `m` for address calculations but sign-extends it for the loop upper bound. This
>
2011 Apr 18
1
Reorder a data frame according a column randomly reordered.
Hello all ,
I have a data frame like this
X1X2X3
11815
22916
331017
441118
551219
661320
771421
now i want to randomly reorder the variable X2 but the row element should be same
as for example
X1X2X3
12916
251219
331017
471421
561320
61815
741118
how can i do that ??
Hint :
this could be helpful :
if X2 is only a vector like this
X2<-c(8,9,10,11,12,13,14)
so i can easily reorder
2011 Aug 25
1
Sorting order of reorder with multiple variables
I've been building a ranked dot plot for several days now and am sorting the
data using the reorder command. What I don't understand is how reorder
works when mutiple varibles are plotted by grouping. In the example below
I'm using re-order to sort by a variable name Resv_Prop, but I'm plotting up
to three different values of Resv_prop (different Year values) for each
factor.
2012 Nov 03
2
reorder() in the latticeExtra library
Hello all, thanks for your time and help. Below are my commands, and it
generates a really nice plot, however I am not happy with the reorder()
function. I would like the order to be the same as they appear in the
genotype variable "genotype <- c("CJ1450 NW 4/25/12","CJ1450 BAL
4/25/12","CJ1450 NW 4/27/12","CJ1450 BAL 4/27/12","CJ1721 NW
2012 Jul 20
1
conditional subset and reorder dataframe rows
Hi List
I have a dataframe (~1,200,000 rows deep) and I'd like to conditionally reorder groups of rows in this dataframe.
I would like to reorder any rows where the Chr.Strand column contains a '-' but reorder within subsets delineated by the Probe.Set.Name column.
# toy example ####
library(plyr)
negStrandGene <- data.frame(Probe.Set.Name =
2004 Jan 21
1
Reorder tone ...when it should be Busy...
I've noticed I have an issue with my Dialplan ... apparently instead of a busy
signal when the caller is busy it falls through and gets a Congestion...
What's the proper syntax for this, reorder tone when there is a reorder and
busy when there is a busy...
SBC is a T1/PRI.
[macro-sbc-outdial]
exten => s,1,Dial(${ARG1}/${ARG2})
exten => s,2,Congestion
exten =>
2005 Jan 10
1
SIP Reorder tones
We have a strange issue here - we have the following setup:
Asterisk CVS-HEAD-12/15/04-07:42:16
40 SIP Cisco 7940 phones, linking to PSTN via EuroiSDN 30 channels.
Often, when someone tries to dial any internal extension or external
number, they get the "Reorder" message. If they try again, they get
another "Reorder" message. If they try a third time, the call gets