fao

Convert map data to data frame using fortify {ggplot2} for spatial objects in R

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I use to be able to run this script without any problem, but now the fortify {ggplot2} command gives me an error message. Any hint of what might be the problem would be great! I used the fortify command to be able to geom_map the shapefile using ggplot2. Below is my script and link for downloading the data. ####################################################### ####################################################### rm(list = ls(all = TRUE))#clear workspace getwd() #upload packages library(maps) library(mapdata) library(gridExtra) library

PHP+MySQL用户注册发送邮件激活账号实例

匿名 (未验证) 提交于 2019-12-02 22:11:45
PHP+MySQL用户注册发送邮件激活账号实例,样式用的layui,简洁美观。 1.注册发送邮件激活账号,同时检测邮箱是否已注册。 2.检测邮箱是否存在,当邮箱存在时判断是否激活,若未激活,则更改激活码和注册时间。邮箱不存在时则发送激活邮件。 邮件配置及注释 1 $smtpserver = "smtp.exmail.qq.com"; //SMTP服务器 2 $smtpserverport = 25; //SMTP服务器端口 3 $smtpusermail = "ruxi@faofao.cn"; //SMTP服务器的用户邮箱 4 $smtpuser = "ruxi@faofao.cn"; //SMTP服务器的用户帐号 5 $smtppass = "*********"; //SMTP服务器的授权码 6 $smtp = new Smtp($smtpserver, $smtpserverport, true, $smtpuser, $smtppass); //实例化邮件类 7 $emailtype = "HTML"; //信件类型,文本:text;网页:HTML 8 $smtpemailto = $email; 9 $smtpemailfrom = $smtpusermail; 10 $emailsubject = "用户帐号激活"; 11 $emailbody = " "; 12