Re: [R] Question about dotwhisker

2020-12-19 Thread Dan Bolser
ec 2020 at 13:47, Dan Bolser wrote: > Hello, > > I'm reading this and one part is confusing me (the most ;-) > > library(dotwhisker) > library(broom) > library(dplyr) > > m1 <- lm(mpg ~ wt + cyl + disp + gear, data = mtcars) > > # Please compare: > dwplot(m1)

[R] Question about dotwhisker

2020-12-19 Thread Dan Bolser
Hello, I'm reading this and one part is confusing me (the most ;-) library(dotwhisker) library(broom) library(dplyr) m1 <- lm(mpg ~ wt + cyl + disp + gear, data = mtcars) # Please compare: dwplot(m1) dwplot(tidy(m1)) Why is the dwplot of tidy(m1) so different from the dwplot of m1? I had

[R] Problem installing RMySQL (S4R.h:40:17: error: S.h: No such file or directory?)

2009-01-30 Thread Dan Bolser
Hi, I'm trying to install RMySQL and I keep hitting errors. My computer is: uname -a Linux cricket 2.6.18-92.1.22.el5PAE #1 SMP Tue Dec 16 12:36:25 EST 2008 i686 i686 i386 GNU/Linux I have set the following environment settings: export PKG_LIBS=-L/usr/lib/mysql -lmysqlclient export

[R] plotting prcomp

2008-06-27 Thread Dan Bolser
Please consider the following PCA example; my.df - data.frame(A=(x - rnorm(100,mean=100, sd=10)), B=(y - x + rnorm(100,mean=10, sd=10))) plot(my.df) my.pc - prcomp(my.df, center=TRUE, scale=TRUE) biplot(my.pc) my.x - (my.pc$x)[,1] my.y - (my.pc$x)[,2] plot(my.x, my.y,

Re: [R] plotting prcomp

2008-06-27 Thread Dan Bolser
2008/6/27 Prof Brian Ripley [EMAIL PROTECTED]: On Fri, 27 Jun 2008, Prof Brian Ripley wrote: On Fri, 27 Jun 2008, Dan Bolser wrote: Please consider the following PCA example; my.df - data.frame(A=(x - rnorm(100,mean=100, sd=10)), B=(y - x + rnorm(100,mean=10, sd=10))) plot

[R] Reminder about R 'chat room'...

2008-06-25 Thread Dan Bolser
If you like using IRC, then you might like to try the channel devoted to R: irc://irc.freenode.net/#R You can go there to ask all your R related questions! -- MetaBase - http://BioDatabase.Org [[alternative HTML version deleted]] __

[R] Setting the xlab for 'the other' (upper) X axis?

2008-06-19 Thread Dan Bolser
I would like to set the 'xlab' on the 'upper' x axis. The following code shows roughly what I want by way of (one possible) expected behaviour. par(mar=c(5.1, 4.1, 5.1, 2.1)) plot(rnorm(10), rnorm(10), xlab=the lower one) axis(3, xlab=the upper one) There are various other ways that could be

Re: [R] Setting the xlab for 'the other' (upper) X axis?

2008-06-19 Thread Dan Bolser
And the answer is... mtext(the upper one?, side=3, line = par(mgp)[1]) 2008/6/19 Dan Bolser [EMAIL PROTECTED]: I would like to set the 'xlab' on the 'upper' x axis. The following code shows roughly what I want by way of (one possible) expected behaviour. par(mar=c(5.1, 4.1, 5.1, 2.1