diff --git a/README.md b/README.md index 2949b98..09a9513 100644 --- a/README.md +++ b/README.md @@ -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 ``` +The above theme results in a canvas like this: + +![Rplot](img/Rplot.png) \ No newline at end of file diff --git a/img/Rplot.png b/img/Rplot.png new file mode 100644 index 0000000..77d678e Binary files /dev/null and b/img/Rplot.png differ diff --git a/theme_dc.plot.L.45.nolegend.R b/theme_dc.plot.L.45.nolegend.R index a88ca88..33e471f 100644 --- a/theme_dc.plot.L.45.nolegend.R +++ b/theme_dc.plot.L.45.nolegend.R @@ -1,5 +1,7 @@ +# This is legacy theme defination for maintaining compatibility with my own historical code base. + library(ggplot2) -theme_dc.plot.L.45.nolegend=theme( +theme_dc.plot.L.45.nolegend=ggplot2::theme( axis.line = element_line(colour = "black", size=0.5), panel.border = element_blank(),