Displaying 20 results from an estimated 342 matches for "aesthetic".
2020 Jun 23
2
Codifying our Brace rules-
...don't think avoiding line noise is much of an argument here. If
> you dislike line noise, C++ in general will annoy you. As LLVM is
> coded in C++, we have to live with it.
>
> If we're not going to mandate braces-always, we need guidance on
> how to resolve a difference of aesthetic opinion between an author
> and reviewer. I've reviewed code where the author used a lot of
> technically unnecessary parentheses in a long expression, where I
> thought it reduced clarity and he thought it improved clarity; in
> cases like this, the most insistent person wins, wit...
2020 Jun 23
3
Codifying our Brace rules-
On Tue, 23 Jun 2020 at 03:30, Mehdi AMINI via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> On Mon, Jun 22, 2020 at 2:38 PM Steve Scalpone via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> Me? I would modify the first sentence from:
>>
>> > When writing the body of an if, else, or loop statement,
>> > omit the braces to avoid unnecessary
2013 Jan 02
0
How to use geom_line (from ggplot) with aesthetics in a function?
...<- do.call(rbind, by(movies, round(movies$rating), function(df) {
nums <- tapply(df$length, df$year, length)
data.frame(rating=round(df$rating[1]), year = as.numeric(names(nums)),
number=as.vector(nums))
}))
p <- ggplot(mry, aes(x=year, y=number, group=rating))
p + geom_line()
# Add aesthetic mappings
p + geom_line(aes(size = rating))
p + geom_line(aes(colour = rating))
==========================================
Notice the last two lines, "size = rating" and "colour = rating", this has
knowledge of the structure of the data frame. My goal is to write a generic
funct...
2014 Jun 20
1
zuzufarah Help with ggplot 2 error: Aesthetics must either be length one, or the same length as the dataProblems
...ge) - .1*diff(range(WUA_discharge)),
max(WUA_discharge) + .1*diff(range(WUA_discharge))))
+
theme(plot.margin= unit(c(0, 0, 0.5, 0.5), "lines"))
# Get the gtables
gt1 <- ggplot_gtable(ggplot_build(p1))
the error message from the following code states:
Error: Aesthetics must either be length one, or the same length as the
dataProblems:WUA_table
the error appears after the line:
gt1 <- ggplot_gtable(ggplot_build(p1))
I would appreciate some help on the matter, it seems like a small fix,
however I am very inexperienced with R!
[[alternative HTML version dele...
2009 Feb 25
0
ggplot2 0.8.2
...mary functions. It now has four parameters: fun.y,
fun.ymin and fun.ymax; and fun.data. See the documentation for
stat_summary for more details
Minor improvements
* ggfluctuation: default to aspect ratio that produces squares
* ggsave: filename now first parameter, not second
* qplot: if sample aesthetic is used, stat automatically set to qq
* scale_datetime: improved breaks calculation
* scale_gradient: better default colour scheme from red to blue
(thanks to Charlotte Wickham for providing the Munsell colours)
* scale_size and scale_area: increased default size range
* stats: all give useful erro...
2009 Feb 25
0
ggplot2 0.8.2
...mary functions. It now has four parameters: fun.y,
fun.ymin and fun.ymax; and fun.data. See the documentation for
stat_summary for more details
Minor improvements
* ggfluctuation: default to aspect ratio that produces squares
* ggsave: filename now first parameter, not second
* qplot: if sample aesthetic is used, stat automatically set to qq
* scale_datetime: improved breaks calculation
* scale_gradient: better default colour scheme from red to blue
(thanks to Charlotte Wickham for providing the Munsell colours)
* scale_size and scale_area: increased default size range
* stats: all give useful erro...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...ng legends) as well as
providing a powerful model of graphics that makes it easy to produce
complex multi-layered graphics.
Find out more at http://had.co.nz/ggplot2, and check out the over 500
examples of ggplot 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
* s...
2008 Jan 11
0
New version of ggplot2: 0.5.7
...ng legends) as well as
providing a powerful model of graphics that makes it easy to produce
complex multi-layered graphics.
Find out more at http://had.co.nz/ggplot2, and check out the over 500
examples of ggplot 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
* s...
2009 Apr 23
1
ggplot2/aesthetic plotting advice
...y samples at each
of three years. It seems to make sense to generate
a line plot (matplot-like), with each species plotted
as a separate line, with the points connected to emphasize
the temporal pattern.
The problem: lots of overlapping error bars.
The question: from both a procedural and an aesthetic
point of view, what do people recommend? Below is an
example that hacks (not quite "jitters", because it's
systematic) the x locations a bit, but I find it a bit
ugly. (I was also hoping that ggplot had some magic
to do this automatically, but position_dodge doesn't
seem to work...
2007 Sep 02
0
ggplot2 - version 0.5.5
...multi-layered graphics.
Find out more at http://had.co.nz/ggplot2, and check out the over 500
examples of ggplot in use.
Changes in version 0.5.5
----------------------------------------
Improvements:
* ggplot now gives rather more helpful errors if you have
misspecified a variable name in the aesthetic mapping
* changed default hline and vline intercepts to 0
* added "count" output variable from stat_density for creating
stacked/conditional density plots
* added parameters to geom_boxplot to control appearance of outlying points
* overriding aesthetics with fixed values that have al...
2007 Sep 02
0
ggplot2 - version 0.5.5
...multi-layered graphics.
Find out more at http://had.co.nz/ggplot2, and check out the over 500
examples of ggplot in use.
Changes in version 0.5.5
----------------------------------------
Improvements:
* ggplot now gives rather more helpful errors if you have
misspecified a variable name in the aesthetic mapping
* changed default hline and vline intercepts to 0
* added "count" output variable from stat_density for creating
stacked/conditional density plots
* added parameters to geom_boxplot to control appearance of outlying points
* overriding aesthetics with fixed values that have al...
2009 Dec 11
0
ggplot2: version 0.8.4
...u're interested, you can also sign up to
the ggplot2 mailing list at http://groups.google.com/group/ggplot2, or track
development at http://github.com/hadley/ggplot2
ggplot2 0.8.4 (2009-12-08) ----------------------------------------
* aes and aes_string both convert prefixes to full names
* aesthetics: corrected list of aesthetics to include american spelling of
colour as well as base R abbreviations
* aesthetics: fix bug in detecting which aesthetics are calculated
* aes_string treats NULL as "NULL"
* annotate now works with missing x and y (e.g. for geom_rect)
* continuous scale l...
2009 Dec 11
0
ggplot2: version 0.8.4
...u're interested, you can also sign up to
the ggplot2 mailing list at http://groups.google.com/group/ggplot2, or track
development at http://github.com/hadley/ggplot2
ggplot2 0.8.4 (2009-12-08) ----------------------------------------
* aes and aes_string both convert prefixes to full names
* aesthetics: corrected list of aesthetics to include american spelling of
colour as well as base R abbreviations
* aesthetics: fix bug in detecting which aesthetics are calculated
* aes_string treats NULL as "NULL"
* annotate now works with missing x and y (e.g. for geom_rect)
* continuous scale l...
2008 Nov 21
0
ggplot2 - version 0.8
...documentation for facet_wrap
and facet_grid. Implementing these changes has required a rewrite of
large parts of the coordinate systems code, so if anything seems
strange with non-Cartesian coordinate systems, please get in touch.
I've also made another round of tweaks to make the plots more
aesthetically pleasing. This includes using a bright blue colour for
geoms used to add statistical summaries to plots (contour, smooth, and
quantiles), and tweaking the default colour scheme for the continuous
colour scale. Please let me know what you think. Remember that most
of these options are control...
2008 Nov 21
0
ggplot2 - version 0.8
...documentation for facet_wrap
and facet_grid. Implementing these changes has required a rewrite of
large parts of the coordinate systems code, so if anything seems
strange with non-Cartesian coordinate systems, please get in touch.
I've also made another round of tweaks to make the plots more
aesthetically pleasing. This includes using a bright blue colour for
geoms used to add statistical summaries to plots (contour, smooth, and
quantiles), and tweaking the default colour scheme for the continuous
colour scale. Please let me know what you think. Remember that most
of these options are control...
2009 Oct 06
1
ggplot2: mapping categorical variable to color aesthetic with faceting
...ctual number of data points:
Error in `[<-.data.frame`(`*tmp*`, gp, value = list(colour = c("red", :
replacement element 1 has 2 rows, need 47
I'm new to ggplot2, but have been through the book and the web site enough
to know that my problem is "mapping the varible to the aesthetic"; I also
know I can either "map" or "set" the colors.
The question, finally: is there an simple/elegant way to map a list of two
colors corresponding to A and B onto any random sample size of A and B with
faceting? If not, and I must "set" the colors: Do I com...
2005 Dec 22
6
Plot problems: xlim
...q=F, add= T)
>abline(v=0.2454959)
Without any options, plot.density spreads out nicely, however, naturally, the line I want to add is not plotted since it
is well outside the range automatically determined by plot.density hence the need to add xlim however this produces
something I dont find aesthetically appealing. The plot is squeezed out into a very lean "bell" shape.
So (finally) my question, how can i widen the spread of my plot and yet also be able to add my xline.
Many thanks
Ronnie
2012 Mar 02
0
ggplot2 0.9.0
...ke some
facets very small. (Thanks to Willem Ligtenberg)
DOCUMENTATION
* Thorough clean up and checking, including documenting all arguments, adding
systematic cross-references, and adding commonly requested examples. Thanks
to Jake Russ and Dennis Murphy for the help.
* Complete series of aesthetics pages (grouped subsets of aesthetics) with
examples of how to use the major ones, see e.g. `?fill`, `?shape`, `?x`,
* Added a complete list of theme opts with usage examples in `?opts`
* Added "translate" pages to demonstrate usage between qplot and ggplot, GPL,
base and lattice gr...
2012 Mar 02
0
ggplot2 0.9.0
...ke some
facets very small. (Thanks to Willem Ligtenberg)
DOCUMENTATION
* Thorough clean up and checking, including documenting all arguments, adding
systematic cross-references, and adding commonly requested examples. Thanks
to Jake Russ and Dennis Murphy for the help.
* Complete series of aesthetics pages (grouped subsets of aesthetics) with
examples of how to use the major ones, see e.g. `?fill`, `?shape`, `?x`,
* Added a complete list of theme opts with usage examples in `?opts`
* Added "translate" pages to demonstrate usage between qplot and ggplot, GPL,
base and lattice gr...
2010 Dec 13
1
ggplot2 errorbarh
Hi,
I'm having problems using the 'width' aesthetic attribute for the
geom_errorbarh. This is the same problem reported earlier here, but I'll
try to write the problem more clearly:
http://www.mail-archive.com/r-help@r-project.org/msg62371.html
The problem I'm having is that, the 'width' attribute is supposed to set the
height of...