Displaying 20 results from an estimated 80 matches similar to: "How to plot the grid figure using R?"
2011 Jul 15
2
Convert continuous variable into discrete variable
Dear all,
I have a continuous variable that can take on values between 0 and 100, for
example: x<-runif(100,0,100)
I also have a second variable that defines a series of thresholds, for
example: y<-c(3, 4.5, 6, 8)
I would like to convert my continuous variable into a discrete one using the
threshold variables:
If x is between 0 and 3 the discrete variable should be 1
If x is between 3
2006 May 23
1
shapes in rgl
Does anyone have a way of producing solid shapes other than spheres in
rgl? I am using rgl to produce a simple visualisation of a forest model
results using "lollipops". Its just a bit of fun, but as many of the
trees are pines I would like to depict their crowns as cones. If there
is a solution I need it to work under windows.
Here is the example.
library(rgl)
library(misc3d)
2004 Jun 15
2
tapply/barplot (PR#6983)
Hello,
there seems to be a bug in tapply or barplot in R 1.9.0 that was not in =
earlier versions. The following code creates two nice barplots in 1.7.0, =
but the first one is bad in 1.9.0:
par(mfrow=3Dc(1,2))
x <- rep(1:10,10)
y <- runif(100,1,100)
z <- tapply(y,x,mean)
barplot(z)
barplot(as.numeric(z))
although is.numeric(z) returns TRUE!
Best regards,
Vidar Hjellvik
Institute of
2006 Feb 06
5
lme4: Error in getResponseFormula(form) : "Form" must be a two sided formula
I'm sure I'm being stupid so flame away...
R2.2.1 on Windoze (boohoo) latest updates of packages.
I'm exploring a dataset (land) with three variables looking at an
narrowly unbalanced two group (GROUP) ANCOVA of a randomised
controlled trial analysing endpoint score (SFQ.LOCF.ENDPOINT) entering
the baseline score (SFQ.BASELINE) as covariate and the following work
fine:
> res.same
2002 May 23
1
$SMBDOPTIONS in xinetd.conf
hi list,
got a little trouble of understanding, how to convert from old
/etc/rc.d/init.d/smb to the new version redhat 7.1
this is, what I should know :
the old version looks like this :
# see how we were called
case "$1" in
start)
if [ -s /etc/smb.conf ]; then
echo -n "starting $ident:
start-stop-daemon -S -n $Name1 -x $DAEMON1 - -D -d 2
start-stop-daemon -S -n
2004 Aug 06
2
icecast2 and static files
If you check this unofficial howto at http://quasi.ksl.com/icecast/ then you
will find an example xml config file for ices which allows you to server
static music files. However, you will need to remove the 'encoding' section of
the file as on my system it would reencode on the fly as long as that section
existed.
--thanks
Michael Edwards
http://www.walledcity.ca
>===== Original
2001 Oct 26
0
cut - suggestion
I often use cut in order to produce quick tabulations of continuous data.
But if you choose "sensibe cotpoints as in:
> z <- rnorm(100)
> table( cut( z, breaks=seq(-1,1,0.5) ),
+ cut( z, breaks=c(-100,0,100) ) )
(-100,0] (0,100]
(-1,-0.5] 18 0
(-0.5,0] 19 0
(0,0.5] 0 17
(0.5,1] 0 19
you get labels
2008 Sep 28
1
partitioning vectors of intervals
I have two pairs of time intervals: coarse- and fine-grained. They're
components of their respective dataframes, looking like,
coarse: endtime starttime
1 t1_end t1_start
2 t2_end t2_start
...
fine: is the same, except that its intervals presumably fall into the
coarse's enclosing ones.
The problem is to partition
2009 Dec 10
2
How to scale a histogram
If I want to scale a histogram ie multiply by a constant how would I do
this? Thanks
[[alternative HTML version deleted]]
2019 Nov 11
3
dovecot -2.2.24 on Fedora 31
Hi,
I try to compile dovecot -2.2.24 on Fedora 31 and get the following error:
iostream-openssl.c: In function ?openssl_iostream_verify_client_cert?:
iostream-openssl.c:118:37: error: dereferencing pointer to incomplete type ?X509_STORE_CTX? {aka ?struct x509_store_ctx_st?}
118 | subject = X509_get_subject_name(ctx->current_cert);
| ^~
make[3]: ***
2014 Feb 11
1
Samba 4 mapping share like \\my.domain\sharename
Dear all,
Is it possible to map shares this way ex: \\test.loc\testshare. Whre
test.loc is the name of the samba 4 domain.
I tried this with netlogon and syvol both working this way but ex [home] or
any other share [test] will not.
It would be fine if this is possible. It would be usefull in a environment
of two replicating dcs. When number one is down
the windows clients can find their shares
2006 May 25
1
understanding DWT
Can someone please help me understand the examples given in the dwt
function of the waveslim library
library(waveslim)
?dwt
I'm having a problem understanding these lines. I assume they are
required because of how the algorythm deals with the signal bounderies.
Am I correct in thinking that for wavelets of scale 1 and 2, the
coefiecints need to be shifted by 2 places, for scale 3 and 4 shift
2010 Jan 15
1
Sampling from a Postgres database
Hi Everybody
Is there a way in which one can use the RPostgreSQL package to take a sample
from a table in Postgres database without having to read the whole table
into R
regards
Christiaan
[[alternative HTML version deleted]]
2016 Apr 22
0
clock24.plot
Hi Ogbos,
Here is your sample data plotted in roughly the same way as the image.
You can get the hours to start at the bottom, but it will require more
code.
swe$hour<-as.numeric(sapply(strsplit(swe$time,":"),"[",1))
swe$FD<-sample(1:2,nrow(swe),TRUE)
library(plotrix)
clock24.plot(swe$count,swe$hour,rp.type="s",radial.lim=c(3000,4010),
2010 Dec 09
1
set dataframe field value from lookup table
Hi
This is (hopefully) a bit more cogent phrasing of a previous post. I'm
trying to compute a z-score to rows in a large dataframe based on values in
another dataframe. Here's the script (that does not work). 2 questons,
1) Anyone know of a more elegant way to calculate the "rounded" age value
than the nested ifelse's I've used?
2) how to reference the lookup table
2019 Nov 11
2
dovecot -2.2.24 on Fedora 31
On Mon, 11 Nov 2019 17:30:37 +0200 (EET) Aki Tuomi via dovecot wrote:
[ ... ]
> Is there some reason you want to use ancient dovecot? You should use 2.2.36 at least.
I got dovecot-2.2.36.4 compiled but at start the log shows
dovecot[342614]: master: Dovecot v2.2.36.4 (baf9232c1) starting up for imap
dovecot[342617]: ssl-params: Generating SSL parameters
dovecot[342614]: master: Error:
2012 Jan 28
4
How to migrate from md5 to bcrypt?
I would like to migrate users from my old phpfusion site but I have there
hash password md5(md5) how to convert this passwords to bcrypt?
I creating Sinatra app whre i use this passwords with Warden.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit
2004 Jul 20
3
i need recycle bin configuration
any one can help me how to setting up recycle bin on samba
or manual references webstie
btw i'm using redhat 7.2 samba 2.2.7..
===========================================================================================
"Gabung INSTANIA, dapatkan XENIA. Daftar di www.telkomnetinstan.com, langsung dapat akses Internet Gratis..
Dan ..ikuti "Instan Smile" berhadiah Xenia,Tour
2008 Jan 17
6
Problems with sqlserver 2000 and ActiveRecord
Hi,
I''m getting some trouble in connecting to a sql server 2000
database with ActiveRecord-2.0.1 and ruby 186-26, from
win XP.
Using the next conenction config:
ActiveRecord::Base.establish_connection(
:adapter => "sqlserver",
:database => "nombre_bd",
:username => "usu",
:password => "contra"
)
I have the next error:
2014 Nov 09
3
[RFC PATCH v1] arm: kf_bfly4: Introduce ARM neon intrinsics
Hello,
This patch introduces ARM NEON Intrinsics to optimize
kf_bfly4 routine in celt part of libopus.
Using NEON optimized kf_bfly4(_neon) routine helped improve
performance of opus_fft_impl function by about 21.4%. The
end use case was decoding a music opus ogg file. The end
use case saw performance improvement of about 4.47%.
This patch has 2 components
i. Actual neon code to improve