Displaying 10 results from an estimated 10 matches for "scale_".
Did you mean:
scale
2011 Jul 08
1
computing functions with Euler's number (e^n)
.... I know that I need to create a loop here, but as a newbie to R,
I don't know how to write the correct loop that will work for me. Any
suggestions??
Here is the code I have been using (less the numerous if...else attempts):
> J <- 12
> r_ <- 1.959
> q_ <- 1.45
> scale_ <- 0.3
> N <- 500
> fq <- seq(0, N, 1)
> center_frequencies <- function(J = 12, r_ = 1.959, q_ = 1.45, scale_ =
0.3){
+ j <- seq(0,J-1,1)
+ fc <- (q_ + j)^r_/scale_
+ }
> fc <- center_frequencies(12,r_,q_,scale_)
> cf <- t(fc)
> lambda <- functi...
2009 Aug 19
1
histogram scaling
Hi,
I'm drawing two histograms in the same plot.However, my point of comparison
is the difference in their x coordinates.But my problem is one histogram is
much taller than the other.How can I get them both to the same height?
--
Rajesh.J
[[alternative HTML version deleted]]
2011 Aug 09
1
ggplot2 setting colors for individual groups.
...o produce some graphics that will be part of
my master's thesis. Here's what I would like to do here, (attached is
an example of how far I've gotten).
I'm working on mapping the values of several different parameters for
each station in my study. So far I've been working with
scale_color_gradientn to handle the coloring. What I would like to do
is rather than have a smooth color gradient, I would like make the
values between A and B a set color, between B and C another color, and
so on. That's where I'm having an issue, because the values are all
continuous data, and...
2009 Aug 19
2
ggplot2 legend problem
...lt;- data.frame(Y=rnorm(1000, mean=3))
xy <- cbind(x, y)
g <- ggplot(xy)
g + geom_histogram(aes(x=X), colour="black", binwidth = 0.1, fill =
alpha("red", .5)) +
geom_histogram(aes(x=Y), colour="black", binwidth = 0.1, fill =
alpha("blue", .5)) +
scale_fill_manual("Case", values = alpha(c("red","blue"), 0.5),
limits=c("A", "B")) +
opts(title = "A & B distributions") +
xlab("Value")
The plot is just what I want and looks gorgeous on my screen. However the
legend boxe...
2010 Oct 20
1
Adding Legend about two quantile lines at ggplot
...ed")+stat_quantile(quantiles=c(0.90),col="blue",size=2)
I like to add legend indicating the information of "thick-blue line = 90%
line" & "thin-red line = 50% line".
Of course, I hope this legend should have same visual line with the plot.
I tried to use 'scale_colour_manual' function, but it did not work.
Could anyone give a advice for me?
- YNK
[[alternative HTML version deleted]]
2017 Aug 18
1
help with stacked ggplot
Hi,
I am new to R and this is probably a very basic question but I can?t seem to figure out a solution. I am creating a stacked ggplot with the following data and code:
PercentageData.csv looks like this:
decision
treatment
percentage
labtreatment
defect
0
53.49
COMMON
defect
1
78.00
ASYMMETRIC
defect
2
96.67
PRIVATE
coop
0
46.51
COMMON
coop
1
22.00
ASYMMETRIC
coop
2
3.33
PRIVATE
%Load data:
2008 Jan 11
0
New version of ggplot2: 0.5.7
...gplot in use.
ggplot 0.5.7
----------------------------------------
New geoms, scales and aesthetics
* stat_step and geom_step to draw staircase plots (like plot(type="s"))
* order aesthetic (currently only for lines/paths) allows you to
control the drawing order within a group
* scale_manual makes it easier to let ggplot uses the exact
colours/sizes/linetypes that you want
* scale_reverse allows you to reverse the scale of x and y axes
* scale_grey is a new black and white scale for categorical data
(colour and fill)
Improved options handling
* new function opts() to all...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...gplot in use.
ggplot 0.5.7
----------------------------------------
New geoms, scales and aesthetics
* stat_step and geom_step to draw staircase plots (like plot(type="s"))
* order aesthetic (currently only for lines/paths) allows you to
control the drawing order within a group
* scale_manual makes it easier to let ggplot uses the exact
colours/sizes/linetypes that you want
* scale_reverse allows you to reverse the scale of x and y axes
* scale_grey is a new black and white scale for categorical data
(colour and fill)
Improved options handling
* new function opts() to all...
2011 Nov 08
2
nesting scale_manual caracteristics in ggplot
Hi there,
I am having a little problem with combining three scale_manual commands in a
facet plot. I am not able to combine the three different characteristics,
instead ending up with three different descriptions next to the graph for
the same geom. I would like to see two separate labels (not three); one
describing lines 1-7 and the other 8-14. For each of the...
2010 Aug 24
0
mlm for within subject design
...ames(m) <- paste('V', 1:5, sep = '')
b <- data.frame(site = factor(rep(c('A', 'B', 'C', 'D', 'E'), each =
12)), status = factor(rep(rep(c('D','L'), each = 3), 10)),
as.data.frame(m))
qplot(V2, V1, data=b, shape=status) + scale_shape_manual(value=c(1,16))
+facet_wrap(~site,nrow=2)
What I would like to do is keep the 2 row shape, keep the order
(A,B,C) of the top plots, but have the D and E panels in this example
align under the B and C plots.
Is this possible using qplot?
Many thanks,
Ali
--Forwarded Message Attachm...