update readme

added info why the theme_dc.plot.L.45.nolegend.R exists
This commit is contained in:
robocopAlpha 2020-07-14 11:40:39 +03:00
parent 8b4ee7de00
commit 477995e4f1
3 changed files with 6 additions and 1 deletions

View file

@ -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:
![Rplot](img/Rplot.png)

BIN
img/Rplot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View file

@ -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(),