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
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
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
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
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
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" ) +
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
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
_
8 matches
Mail list logo