mirror of
https://github.com/dchakro/ggplot_themes.git
synced 2026-05-17 11:22:16 -07:00
update readme
added info why the theme_dc.plot.L.45.nolegend.R exists
This commit is contained in:
parent
8b4ee7de00
commit
477995e4f1
3 changed files with 6 additions and 1 deletions
|
|
@ -41,3 +41,6 @@ customtheme <- DC_theme_generator(type = 'L',
|
||||||
ggplot(data = dat, aes(x=X, y=Y, color=Class)) + geom_point() + scale_color_manual(values=c("red","blue")) + xlab("X-axis") + ylab("Y-axis") + ggtitle("Customized DC_theme_generator") + customtheme
|
ggplot(data = dat, aes(x=X, y=Y, color=Class)) + geom_point() + scale_color_manual(values=c("red","blue")) + xlab("X-axis") + ylab("Y-axis") + ggtitle("Customized DC_theme_generator") + customtheme
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The above theme results in a canvas like this:
|
||||||
|
|
||||||
|

|
||||||
BIN
img/Rplot.png
Normal file
BIN
img/Rplot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
|
|
@ -1,5 +1,7 @@
|
||||||
|
# This is legacy theme defination for maintaining compatibility with my own historical code base.
|
||||||
|
|
||||||
library(ggplot2)
|
library(ggplot2)
|
||||||
theme_dc.plot.L.45.nolegend=theme(
|
theme_dc.plot.L.45.nolegend=ggplot2::theme(
|
||||||
axis.line = element_line(colour = "black",
|
axis.line = element_line(colour = "black",
|
||||||
size=0.5),
|
size=0.5),
|
||||||
panel.border = element_blank(),
|
panel.border = element_blank(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue