如何在x轴上打印埃方形?我尝试如下。我真的很抱歉我的简单问题。
public class LoginModel : ViewModelBase
{
public string txtLabel_IsFocused { get; set; }
public string butEdit_IsEnabled { get; set; }
public void SetProperty(string PropertyName, string value)
{
System.Reflection.PropertyInfo propertyInfo = this.GetType().GetProperty(PropertyName);
propertyInfo.SetValue(this, Convert.ChangeType(value, propertyInfo.PropertyType), null);
OnPropertyChanged(PropertyName);
}
private void Example_function(){
SetProperty("butEdit_IsEnabled", "False");
SetProperty("txtLabel_IsFocused", "True");
}
}
答案 0 :(得分:12)
我们可以使用bquote
library(ggplot2)
ggplot(mtcars, aes(hp, mpg)) +
geom_point() +
labs(x = bquote('x axis'~(Å^2)), y = "y axis") +
#or
#labs(x = bquote('x axis'~(ring(A)^2)), y = "y axis")
theme_bw()
答案 1 :(得分:10)