/
PackagememeApril232021TitleCreateMemeVersion023DescriptionTheword PackagememeApril232021TitleCreateMemeVersion023DescriptionTheword

PackagememeApril232021TitleCreateMemeVersion023DescriptionTheword - PDF document

joanne
joanne . @joanne
Follow
344 views
Uploaded On 2021-07-04

PackagememeApril232021TitleCreateMemeVersion023DescriptionTheword - PPT Presentation

2aspRtopicsdocumentedasp2fontpokemon3gridechomeme3meme ID: 853324

meme null package font null meme font package guangchuangyu file print pokemon save echo angry8 jpg xmeme code allthethings

Share:

Link:

Embed:

Download Presentation from below link

Download Pdf The PPT/PDF document "PackagememeApril232021TitleCreateMemeVer..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

1 Package`meme'April23,2021TitleCreateMeme
Package`meme'April23,2021TitleCreateMemeVersion0.2.3DescriptionThewordMemewasoriginatedfromthebook,TheSelshGene,au-thoredbyRichardDawkins(1976).Itisaunitofculturethatispassedfromonegenerationtoanotherandcorre-latestothegene,theunitofphysicalheredity.Theinternetmemesarecaptionedphotosthatareintendedtobefunny,ridiculous.Memesbehavelikeinfectiousvirusesandtravelfrompersontopersonquicklythroughso-cialmedia.Thememepackageallowsuserstomakecustommemes.DependsR&#x

2 0000;(=3.4.0)Importsggplot2,graphics,grD
0000;(=3.4.0)Importsggplot2,graphics,grDevices,grid,gridGraphics,magick,methods,showtext,sysfonts,utilsSuggestscowplot,ggimage,knitr,rmarkdown,prettydoc,shadowtextVignetteBuilderknitrEncodingUTF-8ByteCompiletrueLicenseArtistic-2.0URLhttps://github.com/GuangchuangYu/meme/BugReportshttps://github.com/GuangchuangYu/meme/issuesRoxygenNote7.1.1NeedsCompilationnoAuthorGuangchuangYu[aut,cre](&#xhttp;&#xs://;&#xorci; .or;᠀g/0000-0002-6485-8781)MaintainerGuangchuangYu&#xguan;&#xgchu; ngy;&#

3 xu@gm; il.; om0;RepositoryCRANDate
xu@gm; il.; om0;RepositoryCRANDate/Publication2021-04-2310:00:02UTC1 2aspRtopicsdocumented:asp..............................................2font_pokemon........................................3grid.echo.meme.......................................3meme............................................4memeGrob.........................................5meme_save.........................................6mmplot...........................................6mm_caption..............................

4 ...........7print.meme..................
...........7print.meme.........................................7Index10 aspasp DescriptionaspectratioofmemeUsageasp(x)ArgumentsxmemeobjectValueaspratioAuthor(s)guangchuangyuExamples##Notrun:fsystem.file("icon.png",package="meme")xmeme(f,"meme","producedbymemepackage")asp(x)##End(Notrun) font_pokemon3 font_pokemonfont_pokemon DescriptionloadfontsUsagefont_pokemon()font_import(path=".")ArgumentspathfolderoffontsAuthor(s)GuangchuangYu grid.echo.memegrid.echo.meme Descriptiongrid.echomethodfor

5 memeobjectUsage##S3methodforclass'meme'g
memeobjectUsage##S3methodforclass'meme'grid.echo(x=NULL,newpage=TRUE,prefix=NULL)ArgumentsxmemeobjectnewpagenotuseinthismethodprefixnotuseinthismethodDetailsusingthesolutionoverow&#xhttp;&#xs://;&#xstac;&#xk100;.com/a/18551959/3844636tonotimportinggrid.echogenericsfromgridGraphicsforeasyinstallation,sincegridGraphicshassystemrequirementofImageMagick&#xhttp;&#xs://;&#xgith;&#xub40;.com/cran/gridGraphics/blob/master/DESCRIPTION#L14.thismethodisjustahackformakingcowplottosupportmemeobject

6 ,andnotusedelsewhere. 4memeValuememeobje
,andnotusedelsewhere. 4memeValuememeobjectAuthor(s)guangchuangyu memememe DescriptioncreatememeUsagememe(img,upper="",lower="",size="auto",color="white",font="Impact",vjust=0.05,bgcolor="black",r=0.2,density=NULL)ArgumentsimgpathorurlupperuppertextlowerlowertextsizesizeoftextcolorcoloroftextfontfontfamilyoftextvjustverticaladjustmentofcaptionsbgcolorbackgroundcolorofshadowtextrratioofshadowtextdensityresolutiontorenderpdforsvgValuegrobobject memeGrob5Author(s)guangchuangyuExamplesfsystem.f

7 ile("angry8.jpg",package="meme")meme(f,"
ile("angry8.jpg",package="meme")meme(f,"code","allthethings!",font="Helvetica") memeGrobmemeGrob DescriptionconvertmemetogrobobjectUsagememeGrob(x)ArgumentsxmemeobjectValuegrobobjectAuthor(s)guangchuangyuExamplesfsystem.file("angry8.jpg",package="meme")xmeme(f,"code","allthethings!")memeGrob(x) 6mmplot meme_savememe_save DescriptionsavememeplotUsagememe_save(x,file,width=NULL,height=NULL,...)Argumentsxmemeoutputfileoutputlewidthwidthofgraphheightheightofgraph...additionalargumentsforgg

8 saveAuthor(s)guangchuangyuExamplesfsyste
saveAuthor(s)guangchuangyuExamplesfsystem.file("angry8.jpg",package="meme")xmeme(f,"code","allthethings!")outfiletempfile(fileext=".png")meme_save(x,outfile) mmplotmmplot Descriptionplottheimageformeme(captionstobeadded)Usagemmplot(x)Argumentsximagele mm_caption7ValuememeobjectAuthor(s)guangchuangyu mm_captionmm_caption DescriptionaddcaptionlayerformemeUsagemm_caption(upper=NULL,lower=NULL,...)Argumentsupperuppercaptionlowerlowercaption...additionalparameterstosetcaptionValuememeobject

9 Author(s)guangchuangyu print.memeprintme
Author(s)guangchuangyu print.memeprintmethodformemeobject Descriptionprintmethodformemeobject 8print.memeUsage##S3methodforclass'meme'print(x,size=NULL,color=NULL,font=NULL,upper=NULL,lower=NULL,vjust=NULL,bgcolor=NULL,r=NULL,newpage=is.null(vp),vp=NULL,newdev=FALSE,...)##S3methodforclass'meme'plot(x,size=NULL,color=NULL,font=NULL,upper=NULL,lower=NULL,vjust=NULL,bgcolor=NULL,r=NULL,newpage=is.null(vp),vp=NULL,newdev=FALSE,...)Argumentsxmemeobjectsizesizeoftextcolorcoloroftextfontfontfamil

10 yoftextupperuppertextlowerlowertextvjust
yoftextupperuppertextlowerlowertextvjustverticaladjustmentratiobgcolorbackgroundcolorofshadowtextrratioforshadowtext print.meme9newpagedrawnew(empty)pagerst?vpviewporttodrawplotinnewdevopennewgraphicdevice?...otherargumentsnotusedbythismethodExamplesfsystem.file("angry8.jpg",package="meme")xmeme(f,"code","allthethings!",font="Helvetica")print(x) Indexasp,2font_import(font_pokemon),3font_pokemon,3grid.echo.meme,3meme,4meme_save,6memeGrob,5mm_caption,7mmplot,6plot.meme(print.meme),7print

Related Contents


Next Show more