search for: barheight

Displaying 6 results from an estimated 6 matches for "barheight".

2003 Feb 24
2
fill prob. in legend
Hi, I'm trying to construct a legend which has four lines of text and associated symbols. The first two symbols need to be normal lines which vary only in colour. The second two symbols should have filled boxes. How do I suppress the fill boxes in the first two lines? J.
2008 Oct 24
1
Automatically adjust text size in plot
...t.new() plot.window(xlim=c(0,1),ylim=c(0,1)) barnames.plot<-do.call("c",lapply(barnames,function(x)paste(strwrap(x,Width),collapse="\n"))) text(barnames.plot,x= (seq.int(0, 1, length.out = length(barnames)+1)-0.5/length(barnames))[-1],y=0.5,cex=Cex) for(i in 1:nrow(answers)){ barheight<-rep(0,length(barnames)) barheight[as.numeric(names(subQ.tables[[i]]))]<-subQ.tables[[i]] barplot(barheight,space=0) } The question is, how do I figure out the appropriate "Width" and "Cex" parameters as a function of barnames? That is, with varying text lengths of the b...
2017 Jul 05
1
How can I make the legend in ggplot2 the same height as my plot?
...)) Scenario1<-P1+geom_point(aes(colour = value), size = 1)+ theme_bw()+ theme(axis.text.x = element_blank(),axis.text.y = element_blank()) Scenario1<-Scenario1+facet_wrap(~variable, ncol=2)+scale_color_gradientn(colours = rainbow(48)) Scenario1+guides(fill = guide_colorbar(bar width = 1.5, barheight = unit(10, "mm"))) Thanks, KG [[alternative HTML version deleted]]
2008 Sep 27
2
multiple plots - editing ggplot2 plot
Hi All, I am trying to build a composite plot, with multiple categories, using ggplot2. In principle, it could be done using facetting, but I do not seem to be able to get past the defaults, so I try building each plot separately, then putting them all together using frameGrob and placeGrob. For this, I need to know how to: 1) format the legend with a different layout (e.g 2 rows by 2 columns,
2002 Dec 12
3
y axis on hist
Hi: The y axis on the hist function seems to set its limits oddly. sometimes, it covers the full range of the data and sometimes it stops one major tick short. I have had this behavior with a variety of data sets, and it can easily be reproduced by just running the following several times: hist(rnorm(100000)) I have tried explicitly setting ylim to the range of values produced by rnorm
2013 Mar 25
2
Plot Matrix with Data
Hi , I would like to use ggplot2 to plot a matrix as an image. You can copy paste the following Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30) lengthOut<-5 Lengths<- 15 library(reshape2) library(ggplot2) tdm <- melt(Data) ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value)),levels=seq(0,1,by=0.1)) +                   labs(x = "MHz", y =