Displaying 20 results from an estimated 6000 matches similar to: "Boxplots: side-by-side"
2009 Apr 25
2
Reading files
Dear R-sians
Quick question...
1) From a flat (data) file with 100+ columns, how do I read specific columns
instead of reading the entire dataset? I am trying to avoid reading the
entire file followed by "subsetting".
2) is the a way to a call a column of dataframe through a variable.. e.g.
e,g
var="date"
something like...
data${var} <- "02 Oct 2009?
Regards,
2009 May 01
1
locating rcmd.exe through a batch script
Dear R-sians!
The following command works fine on Dos Prompt, but not in a windows batch
script...
dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I "2.8.1"
how do I implement the above in a windows batch script? I tried to use:
for /F "usebackq tokens=*" %%i in (`dir /S /B C:\Progra~1\R\R* |findstr /I
"rcmd.exe" |findstr /I
2012 Jun 09
1
combining different types of graphics (scatterplots, boxplots) using lattice
Dear R users:
I have a continuous outcome variable and four predictors, two continuous and
two dichotomous. i would like to use the lattice plot to create scatter
plots for the continuous predictors and boxplots for the dichotomous
predictors.
with 4 continuous variables, this is what i have been doing:
trial = rbind (
cbind ( cimt$ant.mean, cimt$age, 1 ),
cbind ( cimt$ant.mean, cimt$sbp, 2 ),
2009 Mar 23
1
using xyplot
Dear R-sians!
I am trying generate a bunch of xyplots
library(lattice)
myPanel <- function(x,y,xl=range(x),yl=range(y),...) {
panel.xyplot(x,y, pch=20,col='blue',cex=0.7,xlim=xl,ylim=yl,...)
panel.abline(v=0, col='gray30',lty=2,lwd=1.5,...)
panel.loess(x,y,
span=2/3,family='gaussian',normalize=T,col='red',lwd=1.5,...)
#
2008 Nov 28
1
side by side boxplots
Good Morning,
I am trying to get side by side boxplots of two groups on the
same variable. The last item under ?boxplot led me to some useful
code.
I use "boxwex" to make the boxes narrower, "at" to shift them
over and "add" to draw them both on the same graph. Something along
the lines of:
attach(group1)
boxplot(Y~X, col="blue", boxwex=.4,
2004 Nov 06
1
basic bwplot query
Hi -
I have some data consisting of a number of observations within each of
15 countries. Each country falls into one of two groups. I'd like to
use the lattice library's bwplot to present boxplots of the
country-level data, with a separate panel for each group, but showing
only the relevant countries in each panel. Here's an analogous example
using the "singer" data
2008 Nov 11
1
thickness of boxplots
Hi R users:
How can I obtain with bwplot boxplots with bwplot whose box width
will vary acording to other variable.
bwplot(categ1~continuos|categ2,box.ratio=continuos2,data=data.base)
But it doesn't work as I expected.
Thank you for your help.
Kenneth
2010 Mar 01
3
help with lattice boxplots...
Hi All,
I need a small help with following code: I'm trying to convert "dashed
lines" to regular ones; and changing default "blue" border color to say
"black"... but I'm doing it wrong and its not working. Can anyone help
please. Thanks,
Code:
require(lattice)
ex <- data.frame(x=1:10, y=rep(c("A","B"), 5))
bwplot(y~x, data=ex,
2012 May 03
1
bwplot: using a numeric variable to position boxplots
[Env: R 2.14.2 / Win Xp]
In the examples below, I'm using lattice::bwplot to plot boxplots of 4
variables, grouped by a factor 'epoch'
which also corresponds to a numeric year. I'd like to modify the plots
to position the boxplots according to
the numeric value of year, but I can't figure out how to do this.
Also, I'd to modify the strip labels that give the variable
2005 Feb 24
1
3 boxplots in one
I currently have 3 separate boxplots but would like to put them all in the
graphic so they would have the same scale. Below are the three statements
and as you can see the Y axis is weight:
bwplot(AWGT~ male2 ....
bwplot(AWGT ~ bin_pcb2 .....
bwplot(AWGT ~ bin_pcb2 | male2 .....
Does anyone have some sample code where they have done something like this?
Thanks,
Dean Sonneborn M.S.
Public
2012 Sep 28
2
changing outlier shapes of boxplots using lattice
Hello
This is Elaine.
I am using package lattice to generate boxplots.
Using Richard's code, the display was almost perfect except the outlier
shape.
Based on the following code, the outliers are vertical lines.
However, I want the outliers to be empty circles.
Please kindly help how to modify the code to change the outlier shapes.
Thank you.
code
package (lattice)
dataN <-
2009 Dec 19
2
Lattice boxplots
Hi All,
I'm familiar with bwplot() in lattice package. Is it possible to get such a
boxplot using lattice package:
http://www.reading.ac.uk/ssc/publications/graphics/mma-fig1.gif
instead of the following default:
http://media.wiley.com/wires/WICS/WICS22/mfig005.gif
My aim is to get a compact boxplot for publication. Having legend can help
because otherwise x-axis labels are repeated for
2011 Jul 29
2
Multifactor boxplots
Dear All
I would like to produce interaction boxplots and this seems to work:
par(mfrow=c(2,2))
A=sample(rnorm(50,50,10))
B=sample(rnorm(50,100,10))
Test=merge(A,B,by=0)#by=0 where 0 is the row.names
TreatA=(gl(2,50,100,labels=c("High","Low")))
TreatB=rep(gl(2,25,50,labels=c("High","Low")),2)
Newdata=data.frame(TreatA,TreatB,Test)
2008 Aug 06
1
Correlation dichotomous factor, continous (numerical) and ordered factor
Hello R-User!
I appologise in advance if this should also go into statistics but I am
presently puzzled.
I have a data.frame (about 300 rows and about 80 variables) and my variables
are dichotomous factors, continuous (numerical) and ordered factors.
I would like to calculate the linear correlation between every pair of my
variables, because I would like to perform a logistic regression (glm())
2016 Apr 16
2
Problem: No p-value for a point-baserial correlation with R
Dear community
I'm pretty new to R and I'm trying to do a Point-baserial correlation for a nominal dichotomous variable with a interval scaled variable. It works fine, but the output just shows me the correlation and nothing else (p-Value would be important).
I tried it with the following codes:
- biseral.cor()
- cor.biseral()
- I also tried a polyserial() I've found on this
2010 Oct 06
2
ANOVA boxplots
Dear list,
i have a quick and (hopefully) straightforward question regarding the
plot-function after running aov. if i plot an equation like this:
plot(dataSubjects~factorA, data=mydata)
R gives me the boxplots for this particular factor A. my model, however
contains several factors. is there a straightforward way to plot barplots
for a specific factor with the constraint that those values
2006 Feb 27
1
log scale y axis ticks control on boxplots
Hey R Users
I like to control the ticks and labels in a boxplot as described for a
xyplot below (thread in maillinglist in may 2003). Does anybody knows
how it works?
Thanks in advance
Thomas
Thread from May 2003
(http://tolstoy.newcastle.edu.au/R/help/03a/5604.html)
Hello R Users!
I'm using lattice to produce some graphs with logaritmic y-scales. I use
the command
xyplot(hits ~
2007 Aug 07
2
GLMM: MEEM error due to dichotomous variables
I am trying to run a GLMM on some binomial data. My fixed factors include 2
dichotomous variables, day, and distance. When I run the model:
modelA<-glmmPQL(Leaving~Trial*Day*Dist,random=~1|Indiv,family="binomial")
I get the error:
iteration 1
Error in MEEM(object, conLin, control$niterEM) :
Singularity in backsolve at level 0, block 1
>From looking at previous help
2009 Jan 12
3
polychoric correlation: issue with coefficient sign
Hello,
I am running polychoric correlations on a dataset composed of 12 ordinal and
binary variables (N =384), using the polycor package.
One of the association (between 2 dichotomous variables) is very high using
the 2-step estimate (0.933 when polychoric run only between the two
variables; but 0.801 when polychoric run on the 12 variables). The same
correlation run with ML estimate returns a
2011 Aug 05
1
Dichotomous variables
Hi everyone,
Have sample of items for each one, a set of 20 dichotomous (absent-present)
variables are expressed. I'm trying to understand how to explore the
co-occurence of each variable.
Read some papers concerning smallest space analysis, but it does not seems
implemented in any R package (and my protamming skills are =0).
Non metric MDS gives error messages, probably because of the