Displaying 20 results from an estimated 900 matches similar to: "ggplot2 histogramm"
2008 Jul 08
4
Histogram with colors according to factor
Given a data frame with a continuous variable and a factor. I would like to
generate a histogram of the continuous variable, where each bar is filled
with different colors according to the percentage of factor values falling
into this region of the continuous variable.
I looked into packages like 'lattice' and 'ggplot2'. Searching R-help
revealed that 'histogram' is
2024 Aug 16
2
boxplot notch
Thanks Ben,
Here the reproducible example.
It works without notch=TRUE, but provides an error with notch=TURE
Error in `geom_boxplot()`:
! Problem while converting geom to grob.
? Error occurred in the 1st layer.
Caused by error in `ans[ypos] <- rep(yes, length.out = len)[ypos]`:
! replacement has length zero
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
In
2024 Jul 18
2
ggplot two-factor legend
Hi
I am using ggplot to visualise y for a two-factorial group (Bio: 0 and 1) x
= 6 years. I was able to adapt the colour of the lines (green and red) and
the linetype (solid and dashed).
Challenge: my code produces now two legends. One with the colors for the
group and one with the linetype for the group. Does somebody have a hint how
to adapt the code to produce one legend? Group 0 = red and
2006 Oct 13
4
Log-scale in histogramm
Hello
My data looks ugly in a normal histogramm. How can I create a histogramm with a Y-axis in log-scale?
Thanks for your help!
David Graf
--
2024 Aug 16
1
boxplot notch
I don't see anything obviously wrong here. There may be something
subtle, but we probably won't be able to help without a reproducible
example ...
On 2024-08-16 9:24 a.m., SIBYLLE ST?CKLI via R-help wrote:
> Dear community
>
>
>
> I tried the following code using geom_boxplot() and notch=TRUE. Does anyone
> know if the command ?notch=TRUE? is at the wrong place in
2024 Aug 16
1
boxplot notch
Dear community
I tried the following code using geom_boxplot() and notch=TRUE. Does anyone
know if the command ?notch=TRUE? is at the wrong place in my special code
construct?
Without notch=TRUE the code provides the planned ggplot.
Kind regards
Sibylle
Code:
MS1<- MS %>% filter(QI_A!="NA") %>% droplevels()
MS1$Jahr<-as.factor(MS1$Jahr)
MS1s <-
2011 Jan 31
2
Can i make an histogramm with bars on the Y-axis ?
Hi,
My question is in the subject.
Here, a picture that's illustrating my problem :
http://r.789695.n4.nabble.com/file/n3248321/graph.png
This figure comes from an article published in Cancer Cell by K.E. Gascoigne
and S.S. Taylor in 2008.
Thanks you very much and sorry for my English.
--
View this message in context:
2006 Nov 30
1
3D histogramm
thank you for your answer i checked my code and it now works
One more question... do you know how to have an 3D histogramm from a known
matrix of probabilities
Cline
>From: "David Barron" <mothsailor at googlemail.com>
>To: "C?line Henzelin" <celine_appui at hotmail.com>, r-help
><r-help at stat.math.ethz.ch>
>Subject: Re: [R] (no subject)
2024 Aug 11
1
geom_smooth with sd
Dear community
Using after_stat() I was able to visualise ggplot with standard deviations
instead of a confidence interval as seen in the R help.
p1<-ggplot(data = MS1, aes(x= Jahr, y= QI_A,color=Bio, linetype=Bio)) +
geom_smooth(aes(fill=Bio,
ymax=after_stat(y+se*sqrt(length(y))), ymin=after_stat(y-se*sqrt(y))) ,
method = "lm" , formula = y ~ x +
2008 Dec 26
1
histogramm$density
hello,
i am using the hist function with classified values. The class breaks are >1, so
histogram$density is != 1.
How to plot the histogram with freq=FALSE and the real class density values.
I used:
> h2 = hist(value, breaks = breaks_vector)
> h2$density = round(h2$counts/sum(h2$counts), 2)
> h2$intensities = h2$density
> plot(h2, freq=F)
but this isn't the best way, i
2005 Jun 01
3
histogramm?
Hello there!
When I do freq=F on hist, I get on the left a small number, what exactly
does that mean?
Thanks,
Martin
2016 Apr 09
1
Run script R
hi all ,?
i have an problem in script R . But when I execute the script R I face this error . can you help me please ???error:-----------------------------------------
Error in FUN(X[[i]], ...) :?? Theme element 'text' has NULL property: margin, debugIn addition: Warning messages:1: Removed 361 rows containing non-finite values (stat_smooth).?2: Removed 361 rows containing missing values
2024 Jul 18
1
ggplot two-factor legend
?s 16:27 de 18/07/2024, SIBYLLE ST?CKLI via R-help escreveu:
> Hi
>
> I am using ggplot to visualise y for a two-factorial group (Bio: 0 and 1) x
> = 6 years. I was able to adapt the colour of the lines (green and red) and
> the linetype (solid and dashed).
> Challenge: my code produces now two legends. One with the colors for the
> group and one with the linetype for the
2024 Aug 11
1
geom_smooth with sd
Hi!
This is probably completely off base, but your ymin and y max setup lines
are different. One uses sqrt(y), while the second uses sqrt(length(y)).
Could that play a part, please?
Thank you
Erin Hodgess, PhD
mailto: erinm.hodgess at gmail.com
On Sun, Aug 11, 2024 at 10:10?AM SIBYLLE ST?CKLI via R-help <
r-help at r-project.org> wrote:
> Dear community
>
>
>
> Using
2024 Jul 18
1
ggplot two-factor legend
If I follow your question, you want redundant aesthetics. Ggplot normally notices correlated aesthetic mapping variables and merges the legends, so the most likely answer is that your data are not fully correlated in all rows. I have also seen this where data are drawn from different dataframes for different layers since it is hard to merge factors, but I don't see that here.
You are using
2024 Jul 18
1
ggplot two-factor legend
?s 17:43 de 18/07/2024, Rui Barradas escreveu:
> ?s 16:27 de 18/07/2024, SIBYLLE ST?CKLI via R-help escreveu:
>> Hi
>>
>> I am using ggplot to visualise y for a two-factorial group (Bio: 0 and
>> 1) x
>> = 6 years. I was able to adapt the colour of the lines (green and red)
>> and
>> the linetype (solid and dashed).
>> Challenge: my code
2024 Aug 16
1
boxplot notch
That's not really a reprex Sibylle.? I did try to use it to see if I
could work out what you were trying to do and help but there is so much
in there that I suspect is distraction from the notch issue and its
error message.
Please can you give us something stripped of all unecessary things and
tell us what you want?
Something like data that we can read as a tribble() or from a dput() of
2009 Dec 07
2
data.frame to "stacked frame"
Hi,
have anybody a hint how i could avoid the cumbersome way (..especially
the value part)
change the data representation from n column data.frame to an stacked
representation.
many thanks
Christian
#example data
dfw <- as.data.frame(matrix(runif(10*10),ncol=10))
dfw$group <- sample(c("X","Z"),nrow(dfw),replace=T,prob=c(0.75,0.25))
# change
var <-
2009 Jul 23
1
Another question on gplot
I am getting following strange error :
library(sn)
library(ggplot2)
dat1 <- as.matrix(rsn(1000, 0, 1, 0))[,1]
ggplot() + geom_histogram(aes(x = dat1, y = ..density.., fill = ..count..))
+
xlab("Distribution") + scale_y_continuous("")
Error: No data for layer
Can anyone please tell me why it is coming?
--
View this message in context:
2003 Jul 29
4
pxelinux 2.04+ hangs after loading kernel
Hi,
I just tried to boot my token ring devices with 2.05 - to no avail,
it hangs after loading the kernel. I then tried older versions, and found
2.03 booting like a charm, and every 2.04-pre including 2.04 hanging.
Here's the config of the devices:
- Networkstation 2800 with IBM PCI Token Ring card 2
- IBM Thinkpad T21 with IBM PCI Token Ring card 2
Maybe this has to do with the changes