Displaying 20 results from an estimated 3000 matches similar to: "Lattice: Plotting two densities on the same plot(s)?"
2012 Jul 05
1
Different level set when predicting with e1071's Naive Bayes classifier
Hi!
I'm using the Naive Bayes classifier provided by the e1071 package (
http://cran.r-project.org/web/packages/e1071) and I've noticed that the
predict function has a different behavior when the level set of the columns
used for prediction is different from the ones used for fitting. From
inspecting the predict.naiveBayes I came to the conclusion that this is due
to the conversion of
2013 Feb 19
3
creating a new variable.
hello, all.
in my previous research, i have always used existing data. i am trying something new as an exploratory exercise and have never create my own variable form scratch.
essentially, i am creating a variable for party affiliation.
here is an example.
var =party.
levels= democrat, republican, other.
respondents will indicate which category they fall under.
for the sake of ease, i will
2005 Apr 24
4
Vncserver not serving up my gnome desktop, just a fancy terminal!
I have the vncserver running on CentOS 4, but when I log in
using vncviewer from another box, I don't see my gnome
desktop, just a fancy terminal. I suspect I need to edit
the ~/.vnc "xstartup file, but what do I add to fix this.
On all other distros I have tried, the vncserver serves up
my gnome desktop by default.
--
Lee Parmeter Emperor, linXos - The Flying Penguin
2005 Apr 24
3
apt repo's for centos
I downloaded and installed apt and synaptic using yum ok,
but are there corresponding apt repo's for the yum ones? If
so, what are they?
--
Lee Parmeter Emperor, linXos - The Flying Penguin
http://www.linXos.com
Linux Registered User #337161
'It's free. It works. Duh.'" - Eric Harrison
The United States is NOT a democracy, it was founded as a Republic!
God is not a
2005 Apr 21
2
Forums
I created an account on the Forums this morning, but I got
an error saying they were having a problem sending e-mail.
I sent a message to the webmaster and no response either.
So I can't post to the forum until my account is activated.
Are the forums new?
By the amount of traffic on the list, this must be where
most people resolved their problems. I am thinkgng about
installing CentOS 4 on my
2006 Jan 08
1
lmer with nested/nonnested groupings?
I'm trying to figure out how to use lmer to fit models with factors that
have some nesting and some non-nested groupings. For example, in this
paper:
http://www.stat.columbia.edu/~gelman/research/published/parkgelmanbafumi.pdf
we have a logistic regression of survey respondents' political
preferences (1=Republican, 0=Democrat), regressing on sex, ethnicity,
state (51 states within 5
2012 Nov 12
1
Invalid 'times' argument three-category ordered probit with maximum likelihood
Hello,
First time poster here so let me know if you need any more information. I am
trying to run an ordered probit with maximum likelihood model in R with a
very simple model (model <- econ3 ~ partyid). Everything looks ok until i
try to run the optim() command and that's when I get " Error in rep(1,
nrow(x)) : invalid 'times' argument". I had to adapt the code from a 4
2008 Mar 10
2
Multiple density plots
Hi all,
I'm interested in doing a multiple density plot on a number of columns in a
dataframe.
>DF
lineA.1 lineA.2 lineB.1 lineB.2
r1 5.355354 6.665575 10.288498 11.74750
r2 3.643415 5.427600 11.407112 13.97065
r3 5.813674 6.438502 9.628871 11.57456
r4 5.241340 5.125049 10.456221 12.35381
r5 4.640885 8.635518 8.344704 11.98484
r6 4.559852 6.416171 10.419599 10.89247
r7
2008 Jun 26
2
density and jpeg
Dear R community, I am using densityplot (lattice package) for a large
dataset and wish to print it to a jpeg (the pdf is huge). R crashes
consistently. Am I doing it wrong or is densityplot incompatible with jpeg?
I work on a Mac, R 2.7.0.
> require(lattice)
> jpeg("test.jpeg")
> d[1:10]
[1] 0.700218 0.700175 0.700357 0.700847 0.698286 0.701520 0.698158 0.699300
0.698819
2006 Oct 25
1
density plot text
Is there any way of adding text to a density plot? I have had a go using the
text() function but I think the error is because this function doesn't work
with densityplot().
Alternatively, I understand I can achieve pretty much the same result if I
plot a density kernel estimate using plot() (which allows text()), but I do
prefer densityplot().
Also, is it possible to specify the dimensions
2006 Jun 26
1
How to generate a figure using par( ) with some densityplot( )'s
Hi Dear R users,
For a pair plotting, usaully we use par( ) function. Apparently it does not work anywhere. I want to have 3 plots in a single figure, like this:
par(mfrow=c(3,1))
densityplot( a)
densityplot(b)
densityplot(c)
But it does not work. How is it possible to have such a figure with densityplot( ) in a single figure?
So many thanks for any help.
Amir Safari
2005 Apr 27
4
CentOS 4 Software Raid1 questions
I want to mirror an existing 40GB data only drive using
software Raid1 on my new CentOS 4 server. The existing
drive is connected to a Promise Ultra 100 TX2 controller
(non-raid). I have read about mdadm and understand how to
create the Raid1 on /dev/mdxx devices. However I would like
to know if the existing data on the orignal 40GB drive in
the system will be destroyed when I create the raid with
2012 Nov 20
1
lattice density plot: add vertical lines at groupwise medians for all panels
Suppose you have the following code:
########## Start code##########
data(Chem97, package="mlmRev")
densityplot(~gcsescore | factor(score), groups=gender, data=Chem97,
auto.key=TRUE, plot.points=FALSE, ref=TRUE,
panel=function(x,...){
panel.densityplot(x,...)
median.values <- median(x)
2005 Nov 08
1
Need advice about models with ordinal input variables
Dear colleagues:
I've been storing up this question for a long time and apologize for the
length and verbosity of it. I am having trouble in consulting with
graduate students on their research projects. They are using surveys to
investigate the sources of voter behavior or attitudes. They have
predictors that are factors, some ordered, but I am never confident in
telling them what
2011 Jun 14
0
error message trying to plot survival curves from hypothetical covariate profiles
Dear colleagues,
following John Fox' advice in this article (http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-cox-regression.pdf), I'm trying to create a new data frame to examine the differential survival curves from a combination of covariates.
These are derived from a Cox Proportional Hazards model I fit to data about the diffusion of a particular policy across American
2010 Jul 16
1
Weighted densityplot?
I'm trying to plot a series of densities using/comparing differing weights. I see the reference to weights and subscripts, but I don't understand how to implement that. My data are of the form:
I, J, Actual, Distance, Subset, Weight1, Weight2, ...
I'm trying to see the effect of the distance distribution (Actual by Distance) compared to the various weighted distributions
2008 Dec 11
2
call lattice function in a function passing "groups" argument
I'm trying to use a lattice function within a function and have problems
passing the "groups" argument properly. Let's say I have a data frame
d <- data.frame(x = rnorm(100), y = c("a", "b"))
and want to plot variable x in a densityplot, grouped by the variable y, then
I would do something like
densityplot(~ x, d, groups = y)
If however I wanted to
2005 May 24
4
Custom kernel needed for ndiswrapper? (for Linksys WPC54G wireless pcmcia)
Greetings:
I'm just installed Centos-4 on an IBM T-21 laptop. So far so good. Now
I'd like to pop in a wireless lan adapter. I'm looking at a buying a
Linksys WPC54G adapter (although I haven't done so yet).
After doing some searching, it looks like the best way to get this card
working is via ndiswrapper [http://ndiswrapper.sourceforge.net] and then
to use Windoze
2012 Feb 22
1
Lattice and horizontally stacked density plots
Hello,
I am try to make a density plot where plots are stacked like the one
found here:
http://dsarkar.fhcrc.org/lattice/book/images/Figure_14_03_stdBW.png
I am facing problems, however. Using the code example below, I'd like
to generate a separate panel for each val of id2. Within each panel,
I'd like to have individual histograms each on separate lines based on
the value of id1. ?Note
2010 Dec 15
1
Problems drawing a colored 'rug' in the Lattice 'densityplot'
Hi All,
I'm trying to add a 'rug' representation of my data to a plot created
with densityplot(). While I can do this in the simple case, I can't do
it properly when I include the "groups" argument. I have an example
below. I am running a reasonably new version of R.
print(sessionInfo())
R version 2.12.0 Patched (2010-11-07 r53537)
Platform: i686-pc-linux-gnu