Re: [R] ggplot2 axis

2020-05-09 Thread Rui Barradas
Hello, I cannot reproduce this. If I do db <- iris[3:5] names(db) <- c("length", "width", "support") and change 'lenght' to 'length' in the ggplot call both axis are plotted. But the code is not reproducible, db is missing. Can you post the output of dput(head(db, 30)) in a next mail? Hope

[R] ggplot2 axis

2020-05-09 Thread João Marreiros
Dear users, Does anyone had a problem with ggplot concerning the axis not being shown? (see attachment) ggplot(db, aes (x = lenght, y = width, color = support)) +   geom_point(size=2) +   stat_ellipse() +   labs(x="Lenght (mm)", y="width (mm)", title="Boxplot", color = "Support") I'm using the

Re: [R] ggplot2 axis label German formatting

2014-01-12 Thread Stageexp
Works like a charm! Thank you so much! One more comment: I either had to add a second input parameter "..." to gcomma or remove the "..." from the code, otherwise I got an error. -- View this message in context: http://r.789695.n4.nabble.com/ggplot2-axis-label-German-formatting-tp4683477p46834

Re: [R] ggplot2 axis label German formatting

2014-01-12 Thread Ista Zahn
Hi, You can write a function to format the labels, like this: gcomma <- function(x) format(x, ..., big.mark = ".", decimal.mark = ",", scientific = FALSE) p.new + scale_x_continuous(labels = gcomma) Best, Ista On Sun, Jan 12, 2014 at 6:02 AM, Stageexp wrote: > Hi all I have a problem with for

[R] ggplot2 axis label German formatting

2014-01-12 Thread Stageexp
Hi all I have a problem with formatting my ggplot2 graph. Let's look at this example: library(ggplot2) library(scales) x <- rnorm(100, mean=100, sd = 1) * 100 y <- rnorm(100, mean=100, sd = 1) * 100 df <- data.frame(x,y) p.new <- ggplot(df,aes(x,y)) + geom_point() print(p.new) This is

[R] ggplot2 axis scales

2008-06-28 Thread Felipe Carrillo
Hi all: Was this question ever answered? #Is it possible to have different axis limit for each facet in a ggplot2 plot? Here is an example library(ggplot2) x=seq(-10,10,.1) y=cos(x) z=sin(x)*10 dat=melt(data.frame(x,y,z), id.var="x") qplot( x, value, data=dat, facets=variable~., geom="line" ) +

Re: [R] ggplot2 axis labels

2007-11-21 Thread hadley wickham
That should still work? If it doesn't, you should be able to figure out what the new element name is by following the recipe in the last chapter of the ggplot book. Hadley On 11/21/07, Felipe Carrillo <[EMAIL PROTECTED]> wrote: > Hi: > Does anyone(Hadley?)know how to change the axis labels > with

[R] ggplot2 axis labels

2007-11-21 Thread Felipe Carrillo
Hi: Does anyone(Hadley?)know how to change the axis labels with the new version of ggplot2? With the old version I used the code below: grid.gedit("label", gp=gpar(fontsize=10, col="blue")) Thanks Felipe D. Carrillo Fishery Biologist US Fish & Wildlife Service California, USA _