Skip to content

fixed! #1468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2019
Merged

fixed! #1468

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _posts/ggplot2/2019-07-30-geom_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ chart_link
<iframe src="https://plot.ly/~RPlotBot/5780.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>

### Customed Colour and Size Scale
Let's use the LaCroixColoR package to spruce up the colour scheme. In addition, by using scale_size_continuous, we can make sure that none of the text is too small.
Let's use the LaCroixColoR package to spruce up the colour scheme. In addition, by using scale\_size\_continuous, we can make sure that none of the text is too small.


```r
Expand Down Expand Up @@ -122,7 +122,7 @@ chart_link
<iframe src="https://plot.ly/~RPlotBot/5782.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>

### Adding a regression
Adding a regression line as well as a label. geom_smooth does not allow for adjusting the transparency of the line (using alpha), which is why stat_smooth is used here. annotate is used to include a single text label (geom_text would create one label for every data point, all overlapped with each other).
Adding a regression line as well as a label. geom\_smooth does not allow for adjusting the transparency of the line (using alpha), which is why stat\_smooth is used here. annotate is used to include a single text label (geom\_text would create one label for every data point, all overlapped with each other).


```r
Expand Down Expand Up @@ -157,7 +157,7 @@ chart_link
<iframe src="https://plot.ly/~RPlotBot/5774.embed" width="800" height="600" id="igraph" scrolling="no" seamless="seamless" frameBorder="0"> </iframe>

### Customized Formatting
Changed the font of the geom_text and of the graph (these must be done separately!), corrected the size label, centre-aligned the title.
Changed the font of the geom\_text and of the graph (these must be done separately!), corrected the size label, centre-aligned the title.


```r
Expand Down