Displaying 20 results from an estimated 10000 matches similar to: "qplot themes"
2008 May 12
1
Converting qqplot2 qplot() to grammar?
Hello all,
I've been using the following qplot command:
qplot(pixX,pixY, data=som, geom="tile", fill=rgb) +
scale_fill_identity() + opts(aspect.ratio = .75) + facet_grid(unitX ~ unitY)
Now I would like to convert it into the explicit ggplot grammar, so I
can remove the extras: axes, labels, background, borders, facet labels,
and extra white-space around the plot. (If anyone has
2008 Feb 21
2
jpeg() creating empty files with qplot() in a loop
Hello all,
I'm stuck with a strange issue with writing jpegs of plots to a folder
in a loop.
This works:
for (step in 1:length(steps)) {
  jpeg(filename=paste("frame_",sprintf("%05d",step),".jpg",sep=""))
  plot(steps[[step]])
  dev.off()
}
But if I use qplot to generate the plot (which is my aim):
for (step in 1:length(steps)) {
2008 Sep 17
1
ggplot2 - deprecated guide= argument in
In the help for scale_fill_identity, it is written
 ## Not run: 
         colour <- c("red","green","blue","yellow")
         qplot(1:4, 1:4, fill=colour, geom="tile")
         qplot(1:4, 1:4, fill=colour, geom="tile") + scale_fill_identity()
         
         # To get a legend, you also need to supply the labels to
         # be used
2007 Dec 13
2
use ggplot in a function to which a column name is given
Hi everyone, Hi ggplot users in particular,
ggplot makes it very easy to plot things given their names when you  
use it interactively (and therefore can provide the names of the  
columns).
	qplot(x,foo,data=A) where A has columns (x,y,foo,bar) for example
but I would like to use this from inside a function to which the name  
of the column is given. I cannot find an elegant way to make this  
2008 Mar 04
1
qplot (ggplot2) faceting histogram with missing values
Hi,
I've run into a difficulty with qplot function (in the ggplot2  
package). I can facet histograms even when the faceting variable  
contains missing values, but only so long as the faceting variable is  
not a factor.
Example:
y1 <- rnorm(10)
x1 <- c(rep(1,5), rep(2,4), NA)
x2 <- factor(c(rep(1,5), rep(2,4), NA))
library(ggplot2)
qplot(y1, geom = "histogram", facets =
2011 Jan 14
2
bug in qplot (library ggplot2)
Hello,
this following code give a nice png:
/library(ggplot2)
i <- 1
png(file=paste('test ',i,'.png',sep=''))
qplot(carat, data=diamonds, 
fill=color,geom='histogram')+scale_y_continuous(i)
dev.off()
/
I would like to get more files, but the following code doesn't make any 
file:
/library(ggplot2)
for (i in 1:2) {
     png(file=paste('test
2010 Feb 14
2
Problems with boxplot in ggplot2:qplot
Dataframe closed contains balances of closed accounts: each row has month of
closure (Date-type column month) and latest balance. I would like to plot
by-month distributions of balances. A qplot call below produces several
warnings and no output. 
Can anyone help?
Thank you.
PS. A really basic task, very similar to the examples on p. 71 of the
ggplot2 book, apart from a Date grouping column; I
2008 Sep 24
1
qplot, stacked area, own colourscheme
Dear list,
I would like to apply my own colours to a stacked area plot, done with 
qplot, but I have not succeeded...
What do I have so far (I am dealing with the development of cover of 
specific groups of plants):
library(ggplot2) 
library(RODBC) 
channel <- odbcConnect("myusername", case="tolower") 
sql <- "select trial, cover_of, dateofsurvey, cover from
2009 Mar 12
3
Unable to run smoother in qplot() or ggplot() - complains about knots
I get the following error when I run qplot()
qplot(grade, read,data = hhm.long.m, geom = c("point", "smooth"))
Error in smooth.construct.cr.smooth.spec(object, data, knots) :
  x has insufficient unique values to support 10 knots: reduce k.
I am not sure how to tackle this problem. When I take a subsample (<  
1000) than I am able to run that function but with my sample
2009 Aug 05
2
labeling in qplot
HI
  am plotting different density plots in one graph each with a different
color.
  And i want to add labels to plot mentioning which color belongs to which
data series.
p2 <- qplot(corArms, data = data1, geom = "density", adjust=0.4, main="Arms
Correlation All") +
layer(data=data2, geom="density", adjust=0.4, color=I(2)) +
layer(data=data3,
2011 Jun 21
2
qplot/ggplot2 Questions
I took some data from an online poll about which R GUI people used most and I
am messing around with it to learn how to use qplot. Specifically I am
making a horizontal bar graph and I have two questions.
1. The categories are ordered in rather strange way at least to me. It is
not alphabetical or ascending/descending order of votes cast so i had to
manually state the order I wanted which is
2009 Jul 13
1
Strange error in qplot
Hi all, whenever I try to plot a histogram using qplot() function of
"ggplot2" library, I get error like this :
> qplot(rnorm(1000), geom="histogram", binwidth=0.2, main = "", xlab="",
> ylab="")
Error in scale[[1]] : subscript out of bounds
However if I remove ylab="" argument, then it is working fine. Am I missing
something?
2009 Feb 04
1
In qplot, is it possible to switch the location of axis_h and strip_h?
That is qplot, is it possible to switch the location of axis_h and strip_h?
 
I produced a plot where I would like to have the strip_h on the bottom and the axis_h on the top of the facet plot.   Is that possible? 
 
 
 
P.S. I figured out how to not show the x-axis ticks, while still showing the x-lablel. 
There is probably a better way, but here is what I found that seems to work:
2010 Mar 23
2
Creating pdfs using qplot in qqplot2
I am trying to create plots within a for loop and output them to a pdf.
Here is a working example using plot:
          gg <- data.frame(datadate=1:4, spread=5:8)
          pdf()
          for (i in 1:3) {
              plot(gg$datadate, gg$spread, main=i)
          }
          dev.off()
I am trying to learn more about ggplot2 so I try a slight modification
and it doesn't work.  Anyone
2009 Jul 21
1
legend title in qplot
Hi,
I've used the following command in qplot
qplot(a$V1,geom="histogram",binwidth=0.15,fill =
factor(a$V2),ylab="Frequency",xlab="Rate");
but the title in the legend shows up as factor(a$V2)...how can i change
this?
-- 
Rajesh.J
	[[alternative HTML version deleted]]
2010 Jun 09
1
specifying plot symbol sizes in qplot or ggplot2
Hi.
first things first ... thanks for ggplot2.
Now my question. I'm using qplot to generate a plot as follows where X,Y,Z,
A are columns in a dataframe.
qplot(X, Y, data=XYDATA, color=Z, geom=c("point"), size=A)
This works as expected. Factor A has three levels so there are three sizes
of the point plot symbol. I understand that the factor levels are mapped to
symbol sizes.
2008 Sep 25
2
ggplot, qplot in loop
Dear List,
yes, me again trying to work with qplot ;-)
I would like to make several single plots within a loop, like this 
(simplified and so on...):
trials <- c("A","B","C")
mycolours <- ("wheat","darkolivegreen","lightgreen",
2010 Jun 16
2
qplot
Hello,
I am a new r-user, and after a great effort I have made this fantastic
figure with qplot:
qplot(ROI, CBF, fill=factor(Carrier), data=combinedboxplot_dataset_se_1_CBF,
geom="boxplot", position="dodge",xlab=NULL,ylab=("CBF,white
matter-normalized"),main=("Differences between carriers and non-carriers on
baseline"))+theme_bw()
Can anyone help me
2010 Jun 30
2
ggplot qplot bar removing bars when truncating scale
I'm having problems with this example, it is posted with reproduceable code
below, both with the normal 0-6 scale and the desired 3-6 scale (with bars
removed). How can I get the graph to have the desired 3-6 scale without
removing the bars. Thanks!
#Data
2013 Apr 02
0
Question about removing missing data rows in the qplot
Hi,
I've a question about the qplot. I use facets=Antibiotics~Gram.Stainng to draw 6 plots in a panel. Now the problem is within each 'Gram.Staining' categorical level there are some antibiotics does not have value (in my case is log(MIU)). Because some antibiotics are positive gram staining and some are negative.
So my question is how to remove these missing value rows in the